Filter out HTML code from String
Login or Register to Bookmark this snippet
This function filters out ALL tags! Does not remove text between tags (ie: <p>this text is not removed</p>) So, any <style> tags would be removed, but the css inside them would remain. something to keep in mind.
<?php
function FilterHTML ($text) {
for ($x=0;$x<count($matches);$x++) {
$string = $matches[$x];
}
for ($x=0;$x<count($matches);$x++) {
$string = $matches[$x];
}
for ($x=0;$x<count($matches);$x++) {
$string = $matches[$x];
}
for ($x=100;$x>0;$x--) {
$white = '';
for ($y=1;$y<$x;$y++) {
$white .= ' ';
}
}
for ($x=1;$x<3;$x++) {
}
return $changed;
}
?>
Added by JC on 11th November, 2007
There are no comments about this snippet.
You must be registered and logged in to post a comment.
Login here to post a comment