I’ve run into a problem with my meta descriptions. This is what I would normally use:
<meta name="description" content="[[*description:empty=`[[*content:striptags:strip:esc:ellipsis=`155`]]`:striptags:strip:esc:ellipsis=`155`]]" />
It works fine in most cases, but now I’ve run into a case where tags aren’t stripped from the content field. I believe it’s caused by the content field starting with a chunk which contains tags.
To simplify things I’ve narrowed it down to this call, which it turns out doesn’t strip tags which are in the chunk:
I’ve also tried [[!*content:striptags]] and [[*content:notags]] and get the same results – tags are still rendered in the output.
Are there any workarounds for this, except moving the chunk html to the content field (which I would prefer to avoid as the same code is used in a number of pages)?
Using MODX Revolution 2.7.2.