HTML in title attribute is converting to smart quotes in Wordpress

140 Views Asked by At

I'm using Bootstrap with Wordpress and attempting to use the title attribute as a source for HTML in a tooltip. This works fine outside of Wordpress, but Wordpress is converting the quotes in the rendered page which breaks the HTML. I'm having difficulty solving this issue.

I tried the remove_filter method before the closing PHP tag in the footer.php file but it didn't work.

<area alt="kentucky" data-html="true" data-toggle="tooltip" data-title="<h1>KENTUCKY</h1>" coords="0" shape="circle">
0

There are 0 best solutions below