Home Forums Inside This WordPress Site All ' and " get replaced by ' and " Re: All ' and ” get replaced by ' and “

#2351
Udar Gromov
Keymaster

This line of code definitely causes the problem that described on Internet as:

“all apostrophes and quotation marks are prefixed with backslashes”.

I liked the solution with writing a new plugin with this code in it:

<?php
/* Plugin Name: Strip Slashes */
add_filter('pre_topic_title', 'stripslashes', 40);
add_filter('pre_post', 'stripslashes', 40);
add_filter('bb_add_topic_tags', 'stripslashes', 40);
?>

Does it work? – Yes!