Hy.
So would anybody know how to write a function that would sanitize all links in a specific class that are entered through WYSISWYG editor?
I know about the wordpress in-built sanitize_title function, but I don’t know how I could refer to those links(links in a specific class).
Any help much appreciated.
Leave a Reply
You must be logged in to post a comment.
Why don’t you use a filter function to filter
the_content()
?In your functions.php file, include the filter hook:
Then also in functions.php write the sanitizing function that will filter the normal output of
the_content()
: