[wp-trac] [WordPress Trac] #3670: Removing CDATA close tag ( ]]> ) unbalances the CDATA block
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 13 14:39:14 UTC 2010
#3670: Removing CDATA close tag ( ]]> ) unbalances the CDATA block
--------------------------+-------------------------------------------------
Reporter: scenic | Owner: andy
Type: defect (bug) | Status: new
Priority: high | Milestone: Future Release
Component: Template | Version: 2.1
Severity: major | Keywords: has-patch early
--------------------------+-------------------------------------------------
Comment(by andy):
Replying to [comment:12 tellyworth]:
> Whoops, here's that code again:
>
> {{{
> return '<![CDATA['.str_replace(']]>', ']]]><![CDATA[]>', $str).']]>';
> }}}
This is correct. I have been running a high volume of posts through a
strict XML parser and this is how I have been escaping CDATA sections. It
splits the closing tag between two adjacent CDATA sections.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/3670#comment:55>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list