<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Pre tags are being stripped</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 17 Apr 2026 17:59:36 -0000</pubDate>

		<item>
			<title>Macik</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums?m=posts&amp;q=7725&amp;d=1#39495">#39495</a> <strong>Hodges: </strong>
<p>Hi Macik,</p>

<p>The code &lt;pre class="brush:xml;"&gt;TEXT&lt;/pre&gt; reduces to &lt;pre&gt;TEXT&lt;/pre&gt; whilst &lt;pre class="brush"&gt;TEXT&lt;/pre&gt; is left unaltered. I still haven't figured this out yet.  <span style="font-family:sans-serif, Arial, Verdana, 'Trebuchet MS';font-size:13px;line-height:1.6em;">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.</span></p>
</blockquote>

<p><span style="font-family:sans-serif, Arial, Verdana, 'Trebuchet MS';font-size:13px;line-height:1.6em;">I checked it on my old install (</span><span style="color:rgb(102,102,102);font-family:Helvetica, arial, freesans, clean, sans-serif;font-size:12px;line-height:15.600000381469727px;text-align:center;background-color:rgb(247,247,241);">0.9.10</span><span style="font-family:sans-serif, Arial, Verdana, 'Trebuchet MS';font-size:13px;line-height:1.6em;">) and it worked with default </span>HTML purifier setting. By the way both variants works:  <span style="font-family:Georgia, Times, 'Times New Roman', serif;font-style:italic;">&lt;pre class="brush:xml;"&gt; and &lt;pre class="brush:xml"&gt;</span></p>
]]></description>
			<pubDate>Пт, 02 Травень 2014 16:32:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7725&d=0#post39499]]></link>
		</item>
		<item>
			<title>Hodges</title>
			<description><![CDATA[<p>Hi Macik,</p>

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

<p>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.</p>

<p>- Hodges</p>

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

<p>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: <a href="https://github.com/trustmaster/cot-syntaxhighlighter" rel="nofollow">https://github.com/trustmaster/cot-syntaxhighlighter</a></p>
]]></description>
			<pubDate>Пт, 02 Травень 2014 13:23:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7725&d=0#post39495]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>Not 100%, but it can be HTML Purifier.</p>

<p>Try to experiment and save these tag with simple class:  <span style="font-size:13px;line-height:1.6em;">&lt;pre class="test"&gt;</span></p>

<p>If it works fine then special symbols is problem.</p>

<p>If it cleared (not saved) then check HTMLPurifier presets.</p>

<p> </p>

<p>I'm checked this code on my page and it saved fine.</p>

<p>So look at these settings:</p>

<p>    '<strong>Attr.ForbiddenClasses</strong>' =&gt; '',</p>

<p>    '<strong>HTML.AllowedAttributes</strong>' =&gt; 'pre.class';</p>

<p> </p>

<p> </p>

<h3 style="font-family:sans-serif;font-size:1.1em;font-weight:bold;color:rgb(0,0,0);line-height:normal;"> </h3>

<p>p.s. Using special symbols in class attrbut is not semantically right.</p>
]]></description>
			<pubDate>Пт, 25 Кві 2014 20:12:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7725&d=0#post39475]]></link>
		</item>
		<item>
			<title>Hodges</title>
			<description><![CDATA[<p>Good afternoon,</p>

<p>So it seems that when I insert a code snippet the class attribute (containing the markup language identifier, e.g. <span style="line-height:1.6em;">class="brush:xml;") is getting stripped out of the pre tag that's surrounding the code. It can't be CKEditor at fault because in </span>plugins/ckeditor/lib/config.js<span style="line-height:1.6em;">:</span></p>

<pre class="brush:jscript;">
	config.allowedContent = true; // disable ACF</pre>

<p>So it must be HTML Purifier, right? Except everything I've read suggests it isn't that aggressive, and will leave class attributes alone.</p>

<p>Anyway, a little help here would be appreciated :)</p>
]]></description>
			<pubDate>Пт, 25 Кві 2014 14:45:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7725&d=0#post39474]]></link>
		</item>
	</channel>
</rss>