Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I'll create the fiddle in a second. When the editor content is posted, it converts each line into <p> and when saved to the DB it's saved as <p>. But if I manually entered a tag, let's say <p>, it automatically encodes it. That's why I think is the editor and not the server side code, otherwise it would also have converted those entities created by the editor Commented May 23, 2018 at 18:59
  • Are you entering the html/tags in wysiwyg view and not the code view? If so it should encode the tags - that is what is should do in that scenario. Commented May 23, 2018 at 19:00
  • Yes, I'm adding the code in wysiwyg view. How can I avoid the encoding in that scenario? Commented May 23, 2018 at 19:02
  • 1
    You can't - to show you a < it needs to be encoded. If you want to enter code to be interpreted as code use the code view. Commented May 23, 2018 at 19:05