html5_doctype
html5_doctype copied to clipboard
Shorter regex?
I discovered today that you can use the following in xsl
<xsl:output method="xml"
doctype-public=""
doctype-system=""
omit-xml-declaration="yes"
encoding="UTF-8"
indent="yes" />
which outputs
<!doctype html PUBLIC "" "">
I thought this might be of interest to you as if advised to users of this extension, it could mean a shorter regex match for parsing. Whether that would be a speed gain or not I'm not sure.
Anyhoo...
That looks scary.