Home > Backend Development > PHP Tutorial > Filter dangerous html code in form submission with php

Filter dangerous html code in form submission with php

WBOY
Release: 2016-07-25 08:42:23
Original
898 people have browsed it
The HTML code of the PHP filter submission form may contain code that can be exploited to introduce external dangerous content. For example, sometimes the user submission form contains HTML content, but this may cause confusion in the display page layout and needs to be filtered out.
  1. function uht($str)
  2. {
  3. $farr = array(
  4. "/s+/", //Filter excess whitespace
  5. //Filter
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template