You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry I don't have a PR for this, but it appears to only affect the XML minifier, not HTML, so you may just want to add a RevEntitiesMap for XML to pass to the parser.
Named entities work fine, only numeric entities are un-escaped.
Quick way to replicate the issue:
$ echo '<title>Test & < & < XML</title>' | minify --mime application/xml
<title>Test & < & < XML</title>
Instead of returning something like:
<title>Test & < & < XML</title>
Or:
<title>Test & < & < XML</title>
For context, this came up for me because Minify broke a WordPress-generated RSS feed. WordPress escapes & with the numeric entity & (including one leading 0). So, that's one data point on how often & is being used instead of &.
The text was updated successfully, but these errors were encountered:
Sorry I don't have a PR for this, but it appears to only affect the XML minifier, not HTML, so you may just want to add a RevEntitiesMap for XML to pass to the parser.
Named entities work fine, only numeric entities are un-escaped.
Quick way to replicate the issue:
Instead of returning something like:
Or:
For context, this came up for me because Minify broke a WordPress-generated RSS feed. WordPress escapes
&
with the numeric entity&
(including one leading 0). So, that's one data point on how often&
is being used instead of&
.The text was updated successfully, but these errors were encountered: