Re: [PHP] DOMDocument throws Unexpected end tag error when loading valid HTML

2010-06-07 Thread Richard Quadling
On 6 June 2010 19:56, Raymond Irving  wrote:
> Hello,
>
> Sorry to have to be writing to you directly. I've tried sending this email
> to the mailing list but it keeps returning with a failure message:
>
> Remote host said: 550 5.7.1 reject mailfrom [sbl]
>
> It appears that my yahoo about has been black listed?
>
> Anyway, I'm hoping you can help me with the following issue:
>
> I'm getting a php warning from DOMDocument after running a test script that
> tried to load some html inside the DOM and then echo the html to the
> browser:
>
> Warning: DOMDocument::loadHTML() [domdocument.loadhtml]: Unexpected end tag
> : strong in Entity, line: 8 in C:\www\dom-test.php on line 23
>
> The problem is that DOMDocument::loadHTML() attempts to remove the
> ''  tag from within a JavaScript string variable inside the
>  tag. If I try to wrap  around the content of the