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
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom