processwire / processwire-requests

ProcessWire feature requests.
39 stars 0 forks source link

Documentation improvement for MarkupRegions #454

Open gebeer opened 1 year ago

gebeer commented 1 year ago

Short description of the enhancement

mention in the documentation that MarkupRegions is stripping HTML comments by default. Also mention how we can turn off this behaviour

Optional: Screenshots/Links that demonstrate the enhancement

https://processwire.com/talk/topic/27517-markupregions-is-stripping-out-html-comments/

szabeszg commented 1 year ago

I would like to emphasise the following important issue which was mentioned in the discussion: https://processwire.com/talk/topic/27517-markupregions-is-stripping-out-html-comments/?do=findComment&comment=226394

Namely, comments should not be removed by default or at least this behaviour should be configurable: only comments starting with <!--# are the ones that will be removed, if a config option is set.