The Mudcat Café TM
Thread #165735   Message #3979549
Posted By: GUEST,Jon
28-Feb-19 - 07:11 AM
Thread Name: Tech: HELP with Mudcat forbidden HTML tag message
Subject: RE: Tech: HELP with Mudcat forbidden HTML tag message
I’d not heard of this new html style…

---
I had 2 or 3 attempts at trying to allow just a limited subset of html through elsewhere. I think the version I eventually settled on ran.

1. Change angle brackets to my own markers (IIRC, needed as there could be existing > and < in the post).
2. Pattern match the post against an array of expressions for “allowed html” and change matches back to the brackets.
3. Change any remaining markers to < and >

In theory and if I've got that right, that would leave the allowed stuff as working html while making other use of the brackets (including in abc) “display only”.