Skip to content

Commit

Permalink
Remove extra argument
Browse files Browse the repository at this point in the history
  • Loading branch information
aramk committed May 7, 2016
1 parent 7f6535c commit 63df3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/crayon_util.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ public static function strip_attributes($html, $atts) {
}

// Strips all event attributes on DOM elements (prefixe with "on").
public static function strip_event_attributes($html, $atts) {
public static function strip_event_attributes($html) {
$regex = '#\bon\w+\b(\s*=\s*[\'"][^\'"]*[\'"])?(?=[^<]*>)#msi';
return preg_replace($regex, '', $html);
}
Expand Down

0 comments on commit 63df3de

Please sign in to comment.