Htmlpurifier plug-in usage
Download Htmlpurifier Plugin
The useful part of the Htmlpurifier plugin is the library
using Htmlpurifier Library class librariesThe first wayCopy CodeThe code is as follows:
Require_once ' HTMLPurifier.auto.php
This article is the PHP plug-in htmlpurifier HTML parser for a detailed analysis of the introduction, the need for friends to refer to the
Use of Htmlpurifier Plug-insDownload Htmlpurifier PluginThe useful part of the Htmlpurifier plugin is the
CMS will integrate online editors such as FCKEditor in the background for editing content, but this is very easy for XSS cross-site attacks. let's take a look at how HTMLPurifier can prevent xss cross-site attacks. with html visualization... CMS
Is there any detailed information about HTMLPurifier? There are only a few pieces of information on the Internet. I want to know the detailed usage information. How do you solve input problems in projects? What's your experience? Is there any
1. Installation
Htmlpurifier is a rich text HTML filter written in PHP, usually we can use it to prevent XSS cross-site attacks, more information about Htmlpurifier please refer to its official website: http://htmlpurifier.org/. Purifier is an
This post language environment: PHP; Development framework: TP3.2;1, Htmlpurifier-4.6.0:https://files.cnblogs.com/files/samgo/htmlpurifier-4.6.0.zipUnzip the downloaded package, modify the name to Htmlpurifier, and put it in the following directory:2
Inside the public function functionsSelective filtering XSS-"Description: Very low performance-" Try to use lessfunction Removexss ($data){Require_once './htmlpurifier/htmlpurifier.auto.php ';$_clean_xss_config = Htmlpurifier_config::createdefault ()
Is there any detailed information about the use of htmlpurifier?
Only sporadic information on the Internet, I would like to know the details of the use of information, we usually in the project on the input processing problems how to do?
The
Use Htmlpurifier Filter input can not & escape to &Today operation Classmate said backstage title appeared some garbled shape such as & and so on. I looked at it because the project used the Htmlpurifier third-party package, the initial guess is
Htmlpurifier Why does this class library have such a large capacity?
RT, I wrote a station, their own rich text editor, Rich text filter really do not want to write their own, the Internet to find this class library, the result was 1.03MB capacity
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.