Removing HTML?
Posted: Fri Aug 13, 2004 8:30 am
How would you check each word to see if it bagan with a < and ended with a >, and then remove those words?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
$a="This is a sentence";
$b="This <b>is</b> a sentence";
$c=strip_tags($b);
echo $a.' - '.strlen($a).'<BR>'.$b.' - '.strlen($b).'<br>'.$c.' - '.strlen($c)
?>