MetaBox.io Posts

Storing javascript in a metabox.io Custom Field textarea 1

Storing javascript in a metabox.io Custom Field textarea

By Pieter Hartsook / March 21, 2020 / 0 Comments
Posted in , ,

For some client projects I needed to embed javascript code in a page (Post). I used a custom field textarea to insert the code when creating the Post. The problem was the default for text fields was to run them through a sanitizer.php to strip out any type of code that might be malicious. This is a good thing. But in this case it defeats the purpose.

So how to disable the sanitizing for just

Read More