File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
-
3
2
const { forEach, flow, isEmpty, toLower } = require ( 'lodash' )
4
3
const sanitizeHtml = require ( 'sanitize-html' )
5
4
const cheerio = require ( 'cheerio' )
@@ -19,9 +18,18 @@ const sanitize = html =>
19
18
meta : normalizeAttributes ( [ 'name' , 'property' ] ) ,
20
19
a : normalizeAttributes ( [ 'href' ] ) ,
21
20
link : normalizeAttributes ( [ 'rel' ] )
21
+ } ,
22
+ parser : {
23
+ lowerCaseTags : true ,
24
+ decodeEntities : true ,
25
+ lowerCaseAttributeNames : true
22
26
}
23
27
} )
24
28
25
- const load = cheerio . load . bind ( cheerio )
29
+ const load = html => cheerio . load ( html , {
30
+ lowerCaseTags : false ,
31
+ decodeEntities : false ,
32
+ lowerCaseAttributeNames : false
33
+ } )
26
34
27
35
module . exports = flow ( [ sanitize , load ] )
Original file line number Diff line number Diff line change 36
36
< script src ="/Scripts/jquery.validate.js " type ="text/javascript "> </ script >
37
37
< script src ="/Scripts/xVal.jquery.validate.js " type ="text/javascript "> </ script >
38
38
< script src ="/Scripts/pmg.CustomValidators.js " type ="text/javascript "> </ script >
39
- < link rel ="SHORTCUT ICON " href ="http://www.cbronline.com/Content/images/favicon.ico ">
39
+ < LINK REL ="SHORTCUT ICON " href ="http://www.cbronline.com/Content/images/favicon.ico ">
40
40
< meta name ="google-site-verification " content ="Ektry6dPOSxDEy6rz0_bYZlTumQ5O0ZMigiavMhwFjY "/>
41
41
< meta name ="DCSext.WebsiteName " content ="www.cbronline.com "/>
42
42
< script type ="text/javascript ">
You can’t perform that action at this time.
0 commit comments