Skip to content

Commit da0d1a5

Browse files
ajpianojzaefferer
authored andcommitted
Use .text() instead of .html() so that entities aren't escaped by cheerio. Fixes #18
1 parent f1e7a3d commit da0d1a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ grunt.registerHelper( "syntax-highlight", function( options ) {
203203

204204
$( "pre > code" ).each( function( index, el ) {
205205
var $t = $( this ),
206-
code = $t.html(),
206+
code = $t.text(),
207207
lang = $t.attr( "data-lang" ) ||
208208
getLanguageFromClass( $t.attr( "class" ) ) ||
209209
crudeHtmlCheck( code ),

0 commit comments

Comments
 (0)