[wp-trac] [WordPress Trac] #40191: Multiline post content with `<` as first character becomes malformed

WordPress Trac noreply at wordpress.org
Fri Mar 17 20:20:04 UTC 2017


#40191: Multiline post content with `<` as first character becomes malformed
-----------------------------+------------------------------
 Reporter:  johnjamesjacoby  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Formatting       |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by johnjamesjacoby):

 I've narrowed it down to:

 * `wpautop()`
 * `wp_replace_in_html_tags()`
 * `wp_html_split()`
 * `get_html_split_regex()`

 Something is up with how `get_html_split_regex()` identifies HTML tags.

 ----

 {{{
 < 1
 < 2
 < 3
 }}}
 gets treated differently than:
 {{{
 > 1
 > 2
 > 3
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40191#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list