In fact, many html tags are very semantic-rich in the forgotten htmltags. After the table layout is popular, many semantic tags are gradually forgotten. For example, labels that many people have never seen at one time:
dl,
dt,
dd,
cite,
q,
dfn,
ins,
Kindeditor Editor Code filtering solution.Jiaoguoqiang published in 2014-07-26 Category: JavaScript reading (1134) Comments (0)
Many friends in the use of the Kindeditor editor will encounter such a problem, such as: to a tag plus title attribute,
Kindeditor is an open source HTML visual editor, mainly used for users to get WYSIWYG editing on the site, compatible with IE, Firefox, Chrome, Safari, opera and other mainstream browsers. Kindeditor is written using JavaScript and can seamlessly
The str_replace () function is used to replace specified characters. you can use this function to filter sensitive characters.
The code is as follows:
/**
* Security filter functions
*
* @ Param $ string
* @ Return string
*/
Function
PHP uses str_replace to prevent injection. The code for copying various PHP character filter functions is as follows :? Php *** security filter function ** @ param $ string * @ returnstring * functionsafe_replace ($ string) {$ stringstr_replace
KindEditor is written in JavaScript and can be seamlessly integrated with Java,. NET, PHP, ASP, and other programs. This article describes how to filter HTML in the Kindeditor online text editor. For more information, see KindEditor. It is an
PHP uses str_replace () function to prevent injection. The str_replace () function is used to replace specified characters, so we can use it to filter sensitive characters to prevent injection, next I will summarize the usage of the str_replace ()
MethodI am using @ version 4.1.2. Now I have updated KindEditor 4.1.4 and it has been released.Main features of KindEditorFast: small size, fast loadingOpen Source: open source code, high level, high qualityUnderlying layer: built-in custom DOM
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.