Updating docblock for Sanitize::stripScripts()

This commit is contained in:
ADmad 2011-06-03 00:49:57 +05:30
parent 6c8b7fd878
commit ccc3b9dbb4

View file

@ -141,7 +141,7 @@ class Sanitize {
* Strips scripts and stylesheets from output
*
* @param string $str String to sanitize
* @return string String with <script>, <style>, <link> elements removed.
* @return string String with <script>, <style>, <link>, <img> elements removed.
*/
public static function stripScripts($str) {
return preg_replace('/(<link[^>]+rel="[^"]*stylesheet"[^>]*>|<img[^>]*>|style="[^"]*")|<script[^>]*>.*?<\/script>|<style[^>]*>.*?<\/style>|<!--.*?-->/is', '', $str);