Re: Usernames with Apostrophe Causes Slashes in Members Widget
Ok solved the problem by adding “stripslashes”, here is the hack to bp-core-templatetags.php file:
function bp_get_the_site_member_name() {
global $site_members_template;
return stripslashes( apply_filters( ‘bp_get_the_site_member_name’, $site_members_template->member->fullname ));
}
add_filter( ‘bp_get_the_site_member_name’, ‘wp_filter_kses’ );
@Rohan Kapoor, I solved the bbpress part by hacking the bb-includes/template-functions.php file:
function get_post_text() {
global $bb_post;
return stripslashes($bb_post->post_text);
}
And
return stripslashes(apply_filters( ‘get_topic_title’, $topic->topic_title, $id ));
Hope this helps people with similar problems.