Buffalo WordPress Users Message Board › Non-Breaking space issue solved!!!

Non-Breaking space issue solved!!!

Scott H.
user 13906228
Buffalo, NY
Post #: 1
Many of you have heard me moan and complain about WP stripping out the non-breaking space characters.

Finally! a solution!

Add this to the functions.php file for you theme and it will not strip them out.

function allow_nbsp_in_tinymce( $mceInit ) {
$mceInit['entities'] = '160,nbsp,38,amp,60,lt,62,gt';
return $mceInit;
add_filter( 'tiny_mce_before_init', 'allow_nbsp_in_tinymce' );
Powered by mvnForum

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy