I'm using a prettify plugin which outputs a <pre class="prettify"></pre> tag.
Within that pre tag there are html entities encoded strings which could be something like a <div> tag when decoded.
Using the latest CKEditor, if I output the string from server side 'as is' the <pre> tag would remove the original content.
Is there as way to output from server side and yet still allow CKEditor to 'read' and display the proper tag which could be something like:
Within that pre tag there are html entities encoded strings which could be something like a <div> tag when decoded.
Using the latest CKEditor, if I output the string from server side 'as is' the <pre> tag would remove the original content.
Is there as way to output from server side and yet still allow CKEditor to 'read' and display the proper tag which could be something like:
<pre class="prettyprint linenums:1"><div>I'm a div tag that wants to show the div tag as text.</div></pre>

Re: Is there a way to display tags as literal text?
Double encode html tags so < becomes &lt; does the trick.