Posted by Toby Inkster on 03/22/06 01:58
Stefan Mueller wrote:
> echo "var_old_data = '" . $html_data . "';";
At a guess... you're pasting $html_data into a section of Javascript --
i.e. you're pasting HTML data into something that isn't HTML. So this data
shouldn't be escaped with htmlentities().
(More technically, the stuff between <script> and </script> is CDATA, so
you don't need to do any HTML-style escaping -- you just need to avoid
using '</'.)
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|