Is Thinkphp unable to display the edited images in the editor properly because of the xss prevention function, and some symbols are escaped every time the content is submitted in the editor? This problem is always encountered before. At first, I thought it was an issue with the editor. Later I changed the editor. Is Thinkphp unable to display the edited images in the editor properly because of the xss prevention function, and some symbols are escaped every time the content is submitted in the editor? This problem is always encountered before. At first, I thought it was an issue with the editor. Later I changed the editor.
Reply content:
Is Thinkphp unable to display the edited images in the editor properly because of the xss prevention function, and some symbols are escaped every time the content is submitted in the editor? This problem is always encountered before. At first, I thought it was an issue with the editor. Later I changed the editor.
Let me answer it myself .. Yes ..
The easiest way to prevent XSS attacks is to filter the corresponding fields or code. However, for Rich Text editors, there are too many unusual fields.
Therefore, for normal display, double quotation marks and so on must be escaped or filtered out each time.