- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
function clear_danger_html ($string) {
$string = preg_replace ("#onclick=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onmouseover=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onmouseout=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onmousedown=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onmouseup=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onselect=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onfocus=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onblur=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onload=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onkeydown=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onkeyup=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#ondblclick=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onunload=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onmouseup=[\"|\'](.+?)[\"|\']#is", "", $string);
$string = preg_replace ("#onsubmit=[\"|\'](.+?)[\"|\']#is", "", $string);
return $string;
}