Escaping HTML in post titles only working for admin
-
I applied the :
add_filter( 'the_title', 'esc_html');
to the functions.php file, however it only escapes characters for the admin when the admin enters a title with characters in a post. When logged in as any other user type to add a post, it doesn’t work and just strips the character in the title. Is there something I can do to add this allowance for all user types?
- The topic ‘Escaping HTML in post titles only working for admin’ is closed to new replies.