<?php $str = 'qwejlj<img src =x onerror=confirm(document.cookie);lol'; $str = preg_replace('#(?:on[a-z]+|xmlns)\s*=\s*[\'"\x00-\x20]?[^\'>"]*[\'"\x00-\x20]?\s?#iu', '', $str);
You have javascript disabled. You will not be able to edit any code.