Closed loganmzz closed 8 years ago
The reason I chose '
is because '
is only supported in HTML5, it's (sadly) not on the official list of entities for HTML4.
It'd be pretty easy to add the deentitize
support, not sure how to add support for apos
and retain backwards compatibility. Package config setting?
for reference: https://www.w3.org/TR/html4/sgml/entities.html
I least I would have make it work for XML (https://www.w3.org/TR/xml-entity-names)
I looked at that doc, I don't see any mention of '
or "
, not sure what to do with that link.
Look at this page : https://www.w3.org/TR/xml-entity-names/bycodes.html
Cool, I'll update the xml
entities to use apos
.
Added '
support in version 2.2.2. XML will always use apos
, and HTML supports it when deentitizing (still uses "
when entitizing).
Entitize
Source:
<root attribute='value'/>
Expecting:<root attribute='value'/>
Actual:<root attribute='value'/>
Deentitize
Source:
<root attribute='value'/>
Expecting:<root attribute='value'/>
Actual:<root attribute='value'/>
Tested on: SublimeText 3 Build 3126, StringEncode 2.2.1