[wp-trac] [WordPress Trac] #22625: Lone less than (<) characters foul up balanceTags()

WordPress Trac noreply at wordpress.org
Mon Dec 3 21:40:18 UTC 2012


#22625: Lone less than (<) characters foul up balanceTags()
--------------------------+------------------------------
 Reporter:  markjaquith   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by devesine):

 Here's a unit test for this, as well as the start of a possible patch to
 provide this functionality.  Seriously malformed things like

 {{{
 < blockquote > < foo < blockquote >
 }}}

 still get mangled to the amusing

 {{{
 &lt; &lt; foo < blockquote >
 }}}

 with that patch, which is obviously wrong - in part, because this patch
 only handles a single lone < leading a tag - but I wanted to put what I
 had done up.

 I'm not sure what the expected behavior might be where floating '>' are
 concerned, either.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22625#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list