@frontmeans/httongue
v2.4.0
Published
Hypertext tongue
Downloads
28
Maintainers
Readme
Hypertext Tongue
Contains Hypertext-related encoding and decoding 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.hyphenateName(string): string
- Hyphenates a camel-cased nameMay add a leading hyphen if the first letter of the name is in upper case.
Has variants:
hyphenateCSSName(string): string
- Hyphenates camel-cased CSS property name.Handles
ms
vendor prefix and caches the results.hyphenateDecapName(string): string
- De-capitalizes a camel-cased name and hyphenates it.No leading hyphen added.