Skip to content
WJunction - Webmaster Forum

HTML does not really work when Load content dynamically is on

Status
Not open for further replies.

1 comment

Hi,
&8211; is the ASCII code for the dash character.
Try this code:
PHP:
function cleanWPMess($content)
{
    $content = str_replace(array("–"), "-", $content);
    return $content;
}
add_filter('the_title', 'cleanWPMess');
add_filter('the_content', 'cleanWPMess');
add_filter('the_excerpt', 'cleanWPMess');

Add it to your theme's functions.php file.
 
Status
Not open for further replies.

About the author

S
Banned · Joined
49
Messages
5
Reactions
8
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom