nov 5
Kommentek eltavolitasa HTML kodbol
Ez egy egyszeru funkcio, amely parameterben egy szoveget var. Kimenetkepp visszaadja a szoveget ugy, hogy kitorli belole a HTML kommenteket.
„<!– ….. –>”
<?php
function remove_comments($s) {
return preg_replace('/<!--(.+?)-->/s', '', $s);
}
Comments are off for this post