More likely than not, your WordPress theme is using an improper function to set the title attribute of your heading’s link. It is probably using the
the_title() function, which delivers the post title after filtering. It should be using
the_title_attribute() which delivers the post title before filtering. Change out this function throughout your theme when it is used inside of an HTML tag, and the problem should go away.
Here are some specific instructions for fixing your theme. Please note that every theme is different, so mileage may vary.
To edit the theme, log in as an administrator and go to:
Appearance > Editor. You will typically want to edit the following files (if they exist):
In each file, search for the code that looks something like this:
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>;"><?php the_title(); ?></a></h2>
Your theme may contain some variations. For instance, the
h2 tags may be
h3… We are looking specifically for the part that says
title=" … <?php the_title(); ?> … ". It should be changed to:
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
Save the files, and you should be good to go.
If you are uncomfortable editing your theme’s code, you may alternatively go to the wp-Typography settings page in your admin panel and add
h2 to the “Do not process the content of these HTML elements:” field. This will disable typographic processing within improperly designed page title links and page titles.