Thomas 'PointedEars' Lahn said the following on 4/12/2006 8:23 AM:[color=blue]
>
endlesstide@gmail.com wrote:
>[color=green]
>> Is there a PHP command to convert a $string of HTML
>> into something friendly for innerHTML population?[/color]
>
> You need to escape "</" as "<\/" if PHP generates
> script code as content of a HTML `script' element.[/color]
That's debatable.
[color=blue]
> PHP programming is off-topic here.[/color]
That is true, but, the implications of what PHP generates to Javascript
executing in the UA *is* on-topic here. And in order to know what to do
in PHP to make it JS friendly then you have to find out what is JS
friendly first. And you find that out - gasp - in a Javascript
newsgroup, not in a PHP group.
[color=blue][color=green]
>> I get a undtermined string constant error sometimes.[/color]
>
> "Doctor, I'm ill sometimes. What did I do wrong?"[/color]
Umm, you read too many of Thomas' Usenet posts?
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/