Forum Moderators: coopster

Message Too Old, No Replies

Handling SGML code 146

Why doesn't htmlentities do it?

         

ianevans

5:36 pm on Nov 21, 2004 (gmt 0)

10+ Year Member



I was grabbing some cd tracks data from Amazon's XML service the other day and my page would no longer validate.

The error given was a non sgml character code 146, the MS Word apostrophe.

I thought an htmlentities($str, ENT_QUOTES) runthrough would fix it but it doesn't.

What should I do?

jatar_k

5:39 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what about using str_replace [php.net] or preg_replace [php.net] to do it?