I’m pretty sure there’s a solve for this, but I haven’t been able to figure it out right now…
So I have a number of pages that are loading dynamic content (Kirbytext formatted), and then at times I want to display that content without any formatting (eg, inside a twitter description or in an XML page), just text only.
I can display the text as just plain text, except that will maintain the **bold** and [links](http://url) and ###Headlines.
How do I take a field and echo just plain text, without the markdown elements? I’ve tried a number of combinations from the cheatsheet, no luck yet.
If I use kirbytext() anywhere in the echo, it’ll return html. If I don’t use kirbytext(), it’ll return markdown elements I don’t want, like brackets and asterisks and whatnot.
Update: Tried adding ->escape(), which broke the xml doc.