Forums / Cotonti / Support / Pre tags are being stripped

Hodges
#39495 2014-05-02 13:23

Hi Macik,

The code <pre class="brush:xml;">TEXT</pre> reduces to <pre>TEXT</pre> whilst <pre class="brush">TEXT</pre> is left unaltered. I still haven't figured this out yet.

I don't understand why this isn't happening on cotonti.com since I'm using HTML Purifier as it ships with Cotonti Siena 0.9.16.

- Hodges

EDIT: I've just paused HTML Purifier whilst submitting a page and the class value was left unaltered so it's definitely HTML Purifier.

EDIT2: Although this isn't yet fixed, I've just realised I didn't have the parser plugin installed (I had assumed it shipped with stock cotonti). Anyway for those who don't know the link is here: https://github.com/trustmaster/cot-syntaxhighlighter

This post was edited by Hodges (2014-05-02 13:39, 9 years ago)