Forums
-
- Forum
- Posts
-
- Installation
- 28,096
- Troubleshooting
- 61,382
- Themes
- 10,273
- Plugins
- 15,147
- Requests & Feedback
- 14,751
- Showcase
- 3,251
-
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