I used translation module to translate the node. The title of a page comes with tag. When I go to that page, the title will print unexpectedly just like the 1st picture. When I look at the code on 2nd picture, the tag messed up the meta tags. That caused the page with unexpected output.

CommentFileSizeAuthor
related_source.png33.79 KBpyyick
unusual_display.png4.41 KBpyyick

Comments

damienmckenna’s picture

Status: Active » Fixed

This problem has been fixed in the current codebase, e.g. assigning the title <em class="monkey">Something funny!</em> results in the following meta tags:

<meta property="og:title" content="Something funny!" />
<meta property="dcterms.title" content="Something funny!" />
<title>Something funny! | d7.dev</title>

Note that Drupal core also adds the following meta tag:

<meta content="&amp;lt;em class=&amp;quot;monkey&amp;quot;&amp;gt;Something funny!&amp;lt;/em&amp;gt;" about="/blog/test" property="dc:title" />

Customizing this is part of #1304038: Need to be able to disable meta tags provided by core (generator, shortcut icon, shortlink).

damienmckenna’s picture

Status: Fixed » Closed (fixed)

Now that Metatag v7.x-1.0-beta5 is out am closing this to keep the issue queue clean.