[wp-trac] Re: [WordPress Trac] #4409: KSES removes text after a non-tag less than sign

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 15 16:22:01 GMT 2007


#4409: KSES removes text after a non-tag less than sign
----------------------+-----------------------------------------------------
 Reporter:  mdawaffe  |        Owner:  anonymous  
     Type:  defect    |       Status:  new        
 Priority:  high      |    Milestone:  2.3 (trunk)
Component:  General   |      Version:  2.2        
 Severity:  critical  |   Resolution:             
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by AmbushCommander):

 Oops, I didn't wrap the code properly. It's really:

 {{{
 $html = preg_replace('/<([^A-Za-z0-9])/', '&lt;$1', $html);
 }}}

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


More information about the wp-trac mailing list