Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: remove trailing slashes
phiw13 wrote #339536:
PS – If memory serves there used to be a plugin to remove the slashes and generate valid HTML4 markup. That was along time ago in the early life of Textpattern. Lights a candle anyone?
Well, if I’ve identified all instances, it’ll only affect the tags I mentioned above. One could try adding trim="#<br\s?\/>#" replace="<br>"
(or something along those lines) to those tags, or wrap them in txp:evaluate with those attributes.
TXP Builders – finely-crafted code, design and txp
Offline
Re: remove trailing slashes
Unfortunately, this also affects any tag generated (by core or plugin) via tag()
and tag_void()
functions. And how browsers will react to a void <customtag>
, dunno. On the other hand, <customtag />
allows no ambiguity.
The closing slash is optional, but not invalid in html5, whatever ‘validators’ claim.
Offline
Offline