&nbsp when I use ENTER for skipping line

I don't know why when I'm using "Enter", that add nbsp; in Pages/Posts Editor. That doesn't matter, but on my website, when I look the code nbsp; makes this code :

p � /p

and � appears on my website...

How can I change that to simple code :

p /p

Topic wp-editor line-breaks post-editor visual-editor Wordpress

Category Web


Here is the code I needed :

<?php
/* Plugin Name: Erase "�" */
function replace_content($content)
{
$content = str_replace('�', '&nbsp;',$content);
return $content;
}
add_filter('the_content','replace_content')
?>

I put in plugins, and now that's ok !

Mhhh not really … I think it's a encoded problem.


It's &nbsp; with the trailing semicolon. Not without, maybe that's the problem?

edit: also the question is quite hard to understand. Do you add those &nbsp;s by hand or is the editor adding them even though you don't want them or what?

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.