mundschenk-at / wp-typography

Improve your WordPress micro typography.

Home Page:https://code.mundschenk.at/wp-typography/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent HTML tags in <title>

mundschenk-at opened this issue · comments

Processing the title parts should not result in HTML tags (<span class="caps"> etc.) being added, as ´<title>` only allows plain text content.

Reported in the WordPress forums.

Actually, it's a bug in The SEO Framework.

While the specific issue stems from an incompatibility with what The SEO Framework does, @sybrew's analysis in sybrew/the-seo-framework#436 is not completely wrong: Several filter hooks used by wp-Typography since "forever" don't expect added HTML markup (or at least it's not clear that users of the relevant functions should expect to handle HTML in the returned values).