[wp-trac] [WordPress Trac] #23236: Add functions to format attributes
WordPress Trac
noreply at wordpress.org
Thu Jan 31 00:10:38 UTC 2013
#23236: Add functions to format attributes
-----------------------------+------------------------------
Reporter: ryanve | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
-----------------------------+------------------------------
Comment (by ryanve):
Here's how I think [http://snipplr.com/view/69712/parse-attributes/
wp_parse_attrs()] should be. It uses a primitive loop and is very fail-
safe. I don't think regexp is viable due to complications from quotes
(single, double, unquoted, JSON).
[http://dev.airve.com/demo/speed_tests/php/parse_attrs.php DOMDocument] is
viable but too brittle.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23236#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list