How do I sanitize a javascript text?

No, there is no function for that. You would need a complete JavaScript parser. This is not part of the WordPress core.

Leave a Comment

tech