Forums
-
- Forum
- Posts
-
- Installation
- 27,248
- Troubleshooting
- 59,602
- Themes
- 10,067
- Plugins
- 14,830
- Requests & Feedback
- 14,489
- Showcase
- 3,226
-
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 ( ' ', '& ;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 ;
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS