1.1.2 • Published 5 years ago
@hatsy/hten v1.1.2
Hypertext Encodings
Contains the following functions:
decodeURLComponent(string): string
- Decodes URL component.In contrast to standard decodeURIComponent function this one decodes
+
signs as spaces.escapeCSS(string): string
- Escapes CSS identifier accordingly to the rules defined for CSS.escape utility method.escapeCSSVal(string): string
- Escapes CSS value to be included into CSS string.escapeXML(string): string
- Replaces XML-unsafe characters with corresponding predefined XML entities.escapeHTML(string): string
is an alias of escapeXML.