#12012 closed Bug (invalid)
HTML Entities Problem with < > inside of the <code> segment
Reported by: | scabro | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
I'm having a problem with the following block of code, which comes directly from database:
<pre data-pbcklang="html" data-pbcktabsize="4"> <code class="language-html "><p> <a href="#">Test</a> </p></code></pre>
when loaded into the ckeditor it gets converted to:
<pre data-pbcklang="html" data-pbcktabsize="4"> </pre> <p><code class="language-html "><a href="#">Test</a> </code></p>
Any idea how to prevent this behavior?
Change History (4)
comment:1 Changed 11 years ago by
Keywords: | html entities code html brackets removed |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Version: | 4.4.1 |
comment:2 Changed 11 years ago by
Not sure I understand. The code that's passed to the textarea is
<pre data-pbcklang="html" data-pbcktabsize="4"> <code class="language-html "><p> <a href="#">Test</a> </p></code></pre>
What else can I encode here?
comment:3 Changed 11 years ago by
Exactly everything.
<
should become <
and
<
should become &lt;
When loaded through the source mode it is not converted to the code below. It is converted when you set it in <textarea> without encoding it first. Note that the content of <textarea> must be encoded like in our samples. Check e.g. http://ckeditor.com/latest/samples/replacebyclass.html