[wp-trac] [WordPress Trac] #45387: Valid HTML get mangled on the frontend
WordPress Trac
noreply at wordpress.org
Tue Nov 20 18:53:46 UTC 2018
#45387: Valid HTML get mangled on the frontend
--------------------------+------------------------------
Reporter: youknowriad | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by pbiron):
Replying to [comment:2 youknowriad]:
> This html is valid. You can try by pasting in the w3c official validator
https://validator.w3.org/nu/#textarea
You're right, my bad. It is just `<` and `&` that must be replaced by
character entities or references. But using `>` does allow the HTML to
rendered correctly on the front-end, so the problem is probably in
[[https://developer.wordpress.org/reference/functions/wptexturize/|wptexturize()]]
(which is hooked to `the_content`).
Let me see if I can find why it is confused by `>` in an attribute value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45387#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list