[wp-trac] Re: [WordPress Trac] #3670: Removing CDATA close tag ( ]]> ) unbalances the CDATA block

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 13 19:29:04 GMT 2007


#3670: Removing CDATA close tag ( ]]> ) unbalances the CDATA block
----------------------------+-----------------------------------------------
 Reporter:  scenic          |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  low             |    Milestone:  2.1.1    
Component:  Administration  |      Version:  2.1      
 Severity:  normal          |   Resolution:           
 Keywords:  dev-feedback    |  
----------------------------+-----------------------------------------------
Comment (by tombarta):

 Does wordpress support PHP < 4.0.5?  If not, you could use arrays in
 `str_replace`:
 {{{
 $data = str_replace(array('<![CDATA[', ']]>'), array('', ''), $data);
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3670#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list