Thinkphp is it because of the prevention of XSS that every time you submit content with the editor, some symbols are escaped, which causes the pictures that cannot be edited in the editor to display properly?

Source: Internet
Author: User
Thinkphp is it because of the prevention of XSS that every time you submit content with the editor, some symbols are escaped, which causes the pictures that cannot be edited in the editor to display properly? Always encountered this problem before. At first I thought it was an editor problem, and then I changed the editor or there was a problem.

Reply content:

Thinkphp is it because of the prevention of XSS that every time you submit content with the editor, some symbols are escaped, which causes the pictures that cannot be edited in the editor to display properly? Always encountered this problem before. At first I thought it was an editor problem, and then I changed the editor or there was a problem.

I'll answer it myself. Yes..

One of the easiest strategies for preventing XSS is to filter the appropriate fields or code. But there are too many unusual fields for a rich text editor.

So, for normal display, you have to escape or filter out some double quotes every time.

  • 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.