2020-05-01 / 4969阅 / 悠然
Escape single quotes, htmlspecialchar ” &, and fix line endings.
Escapes text strings for echoing in JS. It is intended to be used for inline JS (in a tag attribute, for example>‘js_escape’ filter is also applied here.
(string)
(Required)
The text to be escaped.
(string) Escaped text.