Opened 10 years ago
Last modified 9 years ago
#40191 new defect (bug)
Multiline post content with `<` as first character becomes malformed
| Reported by: | johnjamesjacoby | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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: