XML Encoding

    Date: 05/26/05 (PHP Community)    Keywords: rss, html, xml

    I'm writing a lib to produce RSS/Atom feeds for a site.

    I have the character “ in some stories.

    I have done htmlspecialchars($title), however, this still produces a character that feedvalidator.com don't like in the XML.

    How should I correctly trap/encode this (and other similar) characters?

    Source: http://www.livejournal.com/community/php/301066.html

« PHP and HttpRequest || position:absolute a no no?... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home