Forums

Join
bbPress Support ForumsTroubleshootingprevent bbpress from encoding & nbsp;

Info

Tags

prevent bbpress from encoding & nbsp;

  1. Hi there,

    I have the Problem, that in Code & nbsp; is encoded so the user doens't see it anymore.

    Is there a way to tell bbpress to not encode & nbsp; or does this make other problems?

    Kind regards

    Tom

  2. For some reason it doesn't get escaped by anything. How weird. Okay, the hackiest way of doing it ever:

    function bb_escape_nbsp( $text ) {
    	$text = str_replace ( ' ', '&amp ;nbsp;', $text );
    	return $text;
    }
    add_filter('post_text', 'bb_escape_nbsp');
    add_filter('edit_text', 'bb_escape_nbsp');

    Take out the space between amp and ;

  3. Works great, THX!

  4. You must log in to post.