Hi all,

Has anyone got a function or regexp floating around that will convert behave
like htmlspecialchars() or htmlentities() (eg converting & to &, " to
&quote;, etc etc) BUT NOT DESTROY HTML TAGS?

Eg:

"hello" said <a href="fred.php">Fred</a> & Judy

should become:

&quot;hello&quot; said <a href="fred.php">Fred &amp; Judy

NOT:
&quot;hello&quot; said &lt;a href=&quot;fred.php&quot;&gt;Fred &amp; Judy

????

I guess it's stripped down or limited version of htmlspecialchars() or
htmlentities().


Justin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to