Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2019-10-30 15:29:10

etc
Developer
Registered: 2010-11-11
Posts: 5,189
Website GitHub

Re: [solved] pre (in relation to escape="" attribute in txp:body)

phiw13 wrote #319871:

There are certainly use cases (you mention a good one!) for applying the escape attribute to such a high level, all encompassing container tag as @<txp:body />. But it requires serious thought to use.

IIRC, Phil uses <txp:excerpt escape="json" /> for exporting articles as JSON-LD. Anyway, nobody is supposed to employ all txp attributes at once – the less the better.

Offline

#14 2019-10-30 17:36:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,447
Website GitHub

Re: [solved] pre (in relation to escape="" attribute in txp:body)

jakob wrote #319870:

Why trim?

Ack, I meant tidy, you’re right. Sorry. Slip of the mind/keyboard.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB