String Escape / Unescape
Escape and unescape strings for HTML, JavaScript, CSS, URL, JSON, and RegEx contexts.
65 chars · 73 bytes
99 chars · 107 bytes (+34)
Round-trip verified: unescape(escape(input)) === input
Escape and unescape strings for HTML, JavaScript, CSS, URL, JSON, and RegEx contexts.