Menu

Close
  • Home
  • Search
Home ☰Menu

When not to use esc_js()

Dec 30, 2013 #codex #docs #esc_js #sanitization #wordpress

From the codex for esc_js:

If you’re not working with inline JS in HTML event handler attributes, a more suitable function to use is json_encode, which is built-in to PHP.

Casey Bisson's Picture

Casey Bisson

Read more posts by this author.

San Francisco https://maisonbisson.com

Share this post

Twitter Facebook Pinterest

Where on earth can I get an weotype list?

Dynamic range vs. price and brand

MaisonBisson