Forums / Cotonti / Support / Pre tags are being stripped

Macik
#39475 2014-04-25 20:12

Not 100%, but it can be HTML Purifier.

Try to experiment and save these tag with simple class:  <pre class="test">

If it works fine then special symbols is problem.

If it cleared (not saved) then check HTMLPurifier presets.

 

I'm checked this code on my page and it saved fine.

So look at these settings:

    'Attr.ForbiddenClasses' => '',

    'HTML.AllowedAttributes' => 'pre.class';

 

 

 

p.s. Using special symbols in class attrbut is not semantically right.

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F