Last Updated: February 25, 2016
·
415
· dannycastillo

Shady characters

Sometimes random characters are encoded into your text blocks on a browser to browser or computer to computer basis. "Gremlins" are usually caused because whichever program is putting the quotes in is using the actual pretty / curly / smart quotes instead of the proper HTML entities Little "gremlins" have been appearing in my work with WordPress themes.

Isolating these specific areas of text and sweeping them clean of to plain text would not be the ideal solution. Setting up a preprocessor of the text to convert them to HTML entities.

resource: http://php.net/manual/en/function.htmlentities.php
resource: http://alistapart.com/article/emen