Opened 10 years ago
Closed 10 years ago
#13189 closed Bug (invalid)
Prevent converting html entities to tag
Reported by: | majafy | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
I use CKEditor in my project, I use html entities in my content like this:
Sample Code: <pre> <div> <a href="#">test</a> </div> </pre>
but in CKEditor these html entities will convert to tags so this code will show:
Sample Code: <pre>
</pre>
<div><a href="#">test</a></div>
Change History (1)
comment:1 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.4.7 |
I guess that you load content using a textarea. You should encode it before setting it there, because this:
when accessed through
textarea.value
will return just this: