


How to turn off the automatic escaping of ' ' < > when submitting a kindeditor form?
Aug 04, 2016 am 09:21 AM
Several fields in the picture are forms, among which content1 is the content submitted by kindeditor. The original content is Come with a few symbols '<">
Use firebug to see that it looks like the picture above.
Explain that kindeditor has automatically made htmlspecialchars similar to php before submitting, converting symbols like < and > into html escape codes.
It’s a very considerate function, but you need to be careful when using it.
Reply content:
Several fields in the picture are forms, among which content1 is the content submitted by kindeditor. The original content is Come with a few symbols '<">
Use firebug to see that it looks like the picture above.
Explain that kindeditor has automatically made htmlspecialchars similar to php before submitting, converting symbols like < and > into html escape codes.
It’s a very considerate function, but you need to be careful when using it.
KindEditor uses whitelist filtering by default, and you can use the htmlTags
parameter to define the tags and attributes to be retained. Of course, you can also use the filterMode
parameter to turn off the filter mode and retain all tags.
KindEditor.ready(function(K) { K.create('textarea[name="content"]', { filterMode : false }); });
However, this does not replace back-end filtering as the front-end processing can be bypassed.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
