In my content I'm giving my <h3>
tags id's for the sake of direct linking.
This is how it looks in the post editor:
<h3 id="h3-title">H3 Title</h3>
So that I can directly link to it like this:
<a href="http://example.com/page#h3-title">H3 Title</a>
However, the double quotes are getting escaped somehow, with the html output on the post page looking like this:
<h3 id="\"h3-title"\">H3 Title</h3>
This makes the links not work :(
I've tried numerous things, such as removing the wptexturize filter from the_content, making sure that magic_quotes were off, and even remove_filter('content_save_pre', 'wp_filter_post_kses');
which breaks things magnificently.
I'm seriously considering just creating a filter to remove the slashes, but it seems that they shouldn't have been added to begin with. They're not added to images with id's, for example, so they must be added somewhere. This happens in both visual and html modes.
Any help would be greatly appreciated.