Htmlpurifier Why is this kind of library so big?

Source: Internet
Author: User
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 scare, I 3 stations are not so big
The standard version has 354 files, should not be used in all it?
What files will be used in particular?
Is there any other useful Rich Text filter library?
------to solve the idea----------------------
Because more features are available. If you don't need to use so much.
You can try this kind of http://blog.csdn.net/fdipzone/article/details/11884285.
------to solve the idea----------------------
Don't know why to filter
1, if you allow users to submit some code (such as here) but just to show, then filtered out no no no?
2. If you allow the user to submit executable code, then what is the basis for determining which part is harmful? Is it possible to filter out and execute?

If you allow only limited markup to be submitted for control of the format, then the Strip_tags function will already meet your requirements.
  • Related Article

    Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.