HTML Characters Replacing ” < > ‘ etc.
-
Hey,
So I’m trying to modify my site’s description meta tags, so i’ve got this code:
elseif (is_category('')) { echo '<meta name="description" content="'; echo category_description(); echo '">'; }
It works fine and dandy, however, so my my category descriptions have characters like ” ‘ < > etc.
Which can output something like:
<meta name="description" content="orem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam bibendum imperdied&.#.8.2.1.7.;.s
(without the dots)I’ve been searching day and night for the past 3 days to find a solution to fix this, and make these html characther codes return to normal, i.e.:
<meta name="description" content="orem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam bibendum imperdied's
Help? ??
- The topic ‘HTML Characters Replacing ” < > ‘ etc.’ is closed to new replies.