Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $string = 'javascript:alert("hello!");';
- echo strlen($string);
- // outputs 27
- $escaped_string = filter_var('javascript:alert("hello!");', FILTER_SANITIZE_ENCODED);
- echo strlen($escaped_string);
- // outputs 41
Add Comment
Please, Sign In to add comment