Tag Archives: js_escape

js_escape

Escape single quotes, specialchar double quotes, and fix line endings.The filter ‘js_escape’ is also applied by esc_js()

2233

About these ads
Continue reading

esc_js

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 onclick=”…”). Note that the strings have to be in single quotes. The filter ‘js_escape’ is also applied here.

1036

Continue reading

Follow

Get every new post delivered to your Inbox.

Join 496 other followers