Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Escape all HTML, JavaScript, and CSS
- *
- * @param string $input The input string
- * @param string $encoding Which character encoding are we using?
- * @return string
- */
- function noHTML($input, $encoding = 'UTF-8') {
- return htmlentities($input, ENT_QUOTES | ENT_HTML5, $encoding);
- }
Add Comment
Please, Sign In to add comment