HTML code shouldn’t normally be output in feeds. The blog feed is generated by WordPress core, and isn’t theme-specific. Does the problem persist if you switch themes?
Could you provide a link to the site so I can take a look?
Please see the home/category pages of http://freetime.mikeconnelly.net
To be clear, it’s not HTML code appearing on those pages. Rather, it’s that the Canard theme shows all content including the content in HTML headings as if it were originally written as one paragraph.
This can make for awkward reading, which is why I would like to suppress content in the headings for the home/category pages.
By comparison, the 2017 theme also outputs the HTML headings but it doesn’t condense everything into a single paragraph, minus styling.
Thanks for clarifying! Now I see that you meant the blog page, and not the XML feed as I’d originally understood, so this is helpful. 🙂
Automatic excerpts in WordPress do not parse HTML code or embeds, which I think explains what you’re seeing. There are a couple of possible workarounds you could try. They’re different than your solution of stripping out heading tags, but might solve the issue in a different way:
– Add a custom excerpt to each post by writing one in the excerpt box below the post editor. This lets you control which text you want displayed on the blog and category pages.
– If you have a lot of posts and don’t want to go back and add custom excerpts to each one, you could try a plugin like Advanced Excerpts, which preserves HTML parsing in the automated excerpt.
Let me know how it goes.