[ create a new paste ] login | about

Link: http://codepad.org/SBUAlVgO    [ raw code | output | fork ]

PHP, pasted on Jun 12:
1
2
3
4
5
6
7
<?php

$data = <<<P
" onclick="alert('Why it is not blocked?')';
P;

echo filter_var ( $data, FILTER_SANITIZE_STRING); 


Output:
1
&#34; onclick=&#34;alert(&#39;Why it is not blocked?&#39;)&#39;;


Create a new paste based on this one


Comments: