[wp-trac] [WordPress Trac] #28564: Shortcode Attributes with HTML Tags no longer working
WordPress Trac
noreply at wordpress.org
Tue Jun 17 15:17:00 UTC 2014
#28564: Shortcode Attributes with HTML Tags no longer working
--------------------------+--------------------
Reporter: baden03 | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 4.0
Component: Formatting | Version: trunk
Severity: major | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+--------------------
Comment (by miqrogroove):
We will have to revert [28727] if the above behavior is desired. The
original problem was that wptexturize was corrupting HTML when it
contained what appeared to be shortcode patterns. If we want shortcodes
to contain HTML, then we have to go back to corrupting HTML. There really
isn't any middle ground because we are either giving one language priority
over the other, or we are accepting tag soup with merely okay results.
The ultimate example is what happens if this "expand" shortcode contains
HTML with square brackets?
{{{[expand title="<a href='http://example.com/?a[]=12345'>Hello
World</a>"]}}}
There is simply no way to parse that expression without recursion or
object modeling.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28564#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list