[wp-trac] [WordPress Trac] #45387: Valid HTML get mangled on the frontend
WordPress Trac
noreply at wordpress.org
Fri Nov 30 14:05:57 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 aduth):
Maybe worth pointing out that the function is documented to have been
slated for removal by v4.5.0 :
https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/formatting.php?rev=43571#L687
It's unclear from the history whether it's safe to be dropped without any
additional changes.
Related:
- r34761
- #34121
- https://make.wordpress.org/core/2015/09/29/shortcode-roadmap-draft-two/
I'm not certain whether this is on any person's radar for being addressed;
my suspicion is it's not.
For the regular expression itself, I sense it may not be possible in a
single expression to match the end of an opening tag while exempting ">"
which occur within an attribute value.
It's unfortunate that this forces us into a position of
[https://github.com/WordPress/gutenberg/pull/9963 needlessly escaping
content], as it feels like compounding technical debt. The issue will
remain for non-Gutenberg HTML entry.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45387#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list