Use PHP to filter code in HTML that may be exploited to introduce external dangerous content. Sometimes, it is necessary to allow users to submit HTML content in order to enrich the information posted by users. Of course, some codes that may cause confusion in the display page layout are also within the filtering scope.
#HTML posted by users, filtering dangerous codes
The following is the quoted content:
{ $farr = array( "/s+/", //Filter excess white space "/<(/?)(script|i?frame|style|html|body|title |link|meta|?|%)([^>]*?)>/isU", //Filter Latest Articles by Author
Latest Issues
Group MySQL results by ID for looping over
I have a table with flight data in mysql. I'm writing a php code that will group and displ...
From 2024-04-06 17:27:56
0
1
406
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
|