[node:summary] contains also html tags from the body.
It's a normal behavior for teaser, but for meta description, only raw text should be displayed.

Comments

finex’s picture

I agree with @heyyo. But it looks more a token issue than a meta tags one, it should be used a token without html code... anyway a check could be done by Meta tags module. I don't know what would be the better solution to this issue.

marcoka’s picture

Project: Metatag » Token

its a token and so provided by tokens itself. i would push this to token issue queue. if they think it should be done in metatags module, please push it back. then metatags needs to add own tokens in its *.tokens.inc

tguilpain’s picture

Project: Token » Drupal core
Version: 7.x-1.x-dev » 7.x-dev
Component: Code » token system

This token is created in the core's node module. So I'll move to it's ussues.

dave reid’s picture

Project: Drupal core » Metatag
Version: 7.x-dev » 7.x-1.x-dev
Component: token system » Code

It's up to the modules that use the token replacements to remove HTML tags if necessary. If we removed HTML tags in the token by default in core, then this token wouldn't make sense to use in any kind of page output.

damienmckenna’s picture

Status: Active » Fixed

I believe this was resolved with #1917902: Generate uniform contents anyway, so anyone using an old version of Metatag should really update to beta5.

damienmckenna’s picture

Status: Fixed » Closed (fixed)

1.0-beta6 is out, so I'm closing this issue in the interest of keeping the issue queue clean.