Posted by Martin Jay on 04/12/06 18:10
In message <1144827521.971430.155160@u72g2000cwu.googlegroups.com>,
endlesstide@gmail.com writes
>Is there a PHP command to convert a $string of HTML into something
>friendly for innerHTML population? I get a undtermined string constant
>error sometimes.
The strip_tags() function will attempt to remove HTML tags form a
string.
But the htmlspecialchars() may be what you're looking for. It will
convert " to " and ' to ' in a string, which may prevent the
problem you're seeing.
--
Martin Jay
Navigation:
[Reply to this message]
|