diff --git a/syntaxhighlighter.php b/syntaxhighlighter.php index 59d868b..d0db9cb 100644 --- a/syntaxhighlighter.php +++ b/syntaxhighlighter.php @@ -1244,7 +1244,7 @@ function shortcode_callback( $atts, $code = '', $tag = false ) { // Sanitize the "classname" parameter if ( 'class-name' == $key ) - $value = trim( preg_replace( '/[^a-zA-Z0-9 _-]/i', '', $value ) ); + $value = "'" . trim( preg_replace( '/[^a-zA-Z0-9 _-]/i', '', $value ) ) . "'"; // Special sanitization for "pad-line-numbers" if ( 'pad-line-numbers' == $key ) {