[wp-trac] Re: [WordPress Trac] #1526: have wp-atom.php generate
Atom 1.0 (fix attached)
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 12 06:43:22 GMT 2006
#1526: have wp-atom.php generate Atom 1.0 (fix attached)
------------------------------------------+---------------------------------
Reporter: comatoast | Owner: markjaquith
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.1
Component: General | Version: 2.0.2
Severity: normal | Resolution:
Keywords: bg|has-patch bg|dev-feedback |
------------------------------------------+---------------------------------
Comment (by c960657):
Of course you can also use CDATA instead of entity encoding for
type="html" and type="text" (but not type="xhtml") like this:
{{{
<content type="html">
<![CDATA[<p>Peter & <b>Mary</b></p>]]>
</content>
}}}
{{{
<content type="text">
<![CDATA[Peter & Mary]]>
</content>
}}}
Just don't forget to properly encode the contents of the CDATA block
(necessary when the contents contain the string "]]>"). Since there is no
built-in PHP function to do this CDATA escaping, I usually use entity
encoding (htmlspecialchars), but both will work.
--
Ticket URL: <http://trac.wordpress.org/ticket/1526>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list