Opened 9 years ago
Last modified 8 years ago
#40191 new defect (bug)
Multiline post content with `<` as first character becomes malformed
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Formatting | Keywords: | |
| Focuses: | Cc: |
Description
Create a page/post with the following content:
< Hello < Hello < Hello
View the post, and post_content becomes:
< Hello < Hello < Hello
Change History (2)
Note: See
TracTickets for help on using
tickets.
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.gets treated differently than: