Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Open graph description has HTML in it
When I share a post from my blog to Bluesky, the content has HTML in it.
Here’s the tag I’m using:
<meta property=“og:description” content=”<txp:excerpt />” />
Is there a way to fix this?
Mark
Offline
Re: Open graph description has HTML in it
Maybe this:
<meta property="og:description" content="<txp:excerpt escape='tags, html' />" />
Offline
Re: Open graph description has HTML in it
Thanks, that worked. I had tried escaping html, but not tags.
Mark
Offline
Re: Open graph description has HTML in it
etc wrote #338975:
Maybe this:
<meta property="og:description" content="<txp:excerpt escape='tags, html' />" />...
I escape textile too.
<meta property="og:description" content="<txp:excerpt escape='textile,tags,html' />" />
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Open graph description has HTML in it
Hi Yiannis, I don’t think you need to escape textile in that case. To my knowledge <txp:excerpt />
tag outputs the excerpt_html
field from the database. As that has already been pre-rendered as html, it won’t contain any textile.
TXP Builders – finely-crafted code, design and txp
Offline
Re: Open graph description has HTML in it
jakob wrote #338979:
Hi Yiannis, I don’t think you need to escape textile in that case. To my knowledge
<txp:excerpt />
tag outputs theexcerpt_html
field from the database. As that has already been pre-rendered as html, it won’t contain any textile.
You are absolutely right!!!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Pages: 1