File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 24
24
"node" : " *"
25
25
},
26
26
"dependencies" : {
27
+ "cheerio" : " 0.8.3" ,
27
28
"grunt-wordpress" : " 1.0.7" ,
29
+ "he" : " 0.1.2" ,
28
30
"highlight.js" : " 7.3.0" ,
29
- "ent" : " 0.0.5" ,
30
- "cheerio" : " 0.8.3" ,
31
- "rimraf" : " 2.0.2" ,
31
+ "js-yaml" : " 2.0.1" ,
32
32
"marked" : " 0.2.9" ,
33
- "js-yaml " : " 2.0.1 "
33
+ "rimraf " : " 2.0.2 "
34
34
},
35
35
"devDependencies" : {
36
36
"grunt" : " 0.3.17"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function htmlEscape( text ) {
16
16
17
17
var cheerio = require ( "cheerio" ) ,
18
18
hljs = require ( "highlight.js" ) ,
19
- ent = require ( "ent " ) ,
19
+ he = require ( "he " ) ,
20
20
yaml = require ( "js-yaml" ) ;
21
21
22
22
// Add a wrapper around wordpress-parse-post that supports YAML
@@ -204,7 +204,7 @@ grunt.registerHelper( "syntax-highlight", (function() {
204
204
205
205
$ ( "pre > code" ) . each ( function ( ) {
206
206
var $t = $ ( this ) ,
207
- code = ent . decode ( outdent ( $t . html ( ) ) ) ,
207
+ code = he . decode ( outdent ( $t . html ( ) ) ) ,
208
208
lang = $t . attr ( "data-lang" ) ||
209
209
getLanguageFromClass ( $t . attr ( "class" ) ) ||
210
210
crudeHtmlCheck ( code ) ||
You can’t perform that action at this time.
0 commit comments