[wp-trac] [WordPress Trac] #10702: Support for complex nested shorttags
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 30 14:28:26 UTC 2009
#10702: Support for complex nested shorttags
----------------------------+-----------------------------------------------
Reporter: pepijndevos | Type: enhancement
Status: new | Priority: normal
Milestone: Future Release | Component: Shortcodes
Version: 2.9 | Severity: normal
Keywords: needs-patch |
----------------------------+-----------------------------------------------
Comment(by pepijndevos):
No, it has the same problem as Wordpress has.
A regex either looks for the widest match or the smallest, looking at the
code above you can see that both cause trouble.
Explanation: http://kore-nordmann.de/blog/do_NOT_parse_using_regexp.html
You somehow need to match tags on the same nesting level. But as I said, I
never wrote a parser so I don't know how.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10702#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list