Custom JS Sanitization.
-
Hi there wpDataTables,
Kudos on the good plugin and functionality.
I’m trying to add a Custom JS script to do some minor functions on the tables. However i lose around half the script every time i save the wpDataTables settings.
After some digging turns out the script gets sanitized by both sanitize_textarea_field and _sanitize_text_fields before it gets saved to the database which is major inconvenience.
My workaround for now is to directly save the script directly in the wp_options table in the database but that’s rather troublesome every time i need to change some settings.
I’d like to suggest the settings pages be saved separately as well as validating the custom javascript / CSS without actually having this getting super strictly sanitized by sanitize_text_fields.
Also being able to have separate custom javascript files per table would be awesome!
Cheers!
Anas
PS. I have the same issue on both the Lite and Premium versions.
- The topic ‘Custom JS Sanitization.’ is closed to new replies.