File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 3
3
const Writer = require ( 'broccoli-caching-writer' ) ;
4
4
const lunr = require ( 'lunr' ) ;
5
5
const striptags = require ( 'striptags' ) ;
6
- const Entities = require ( 'html-entities' ) . AllHtmlEntities ;
6
+ const { decode } = require ( 'html-entities' ) ;
7
7
const fs = require ( 'fs-extra' ) ;
8
8
const path = require ( 'path' ) ;
9
9
10
- const htmlEntities = new Entities ( ) ;
11
-
12
10
module . exports = class SearchIndexCompiler extends Writer {
13
11
constructor ( input , options ) {
14
12
super ( [ input ] ) ;
@@ -121,7 +119,7 @@ module.exports = class SearchIndexCompiler extends Writer {
121
119
type : 'component' ,
122
120
title : item . attributes . name ,
123
121
keywords : keywords ,
124
- text : htmlEntities . decode ( striptags ( normalizeText ( item . attributes . description ) ) ) ,
122
+ text : decode ( striptags ( normalizeText ( item . attributes . description ) ) ) ,
125
123
item
126
124
} ;
127
125
}
Original file line number Diff line number Diff line change 78
78
"git-repo-info" : " ^2.1.1" ,
79
79
"highlight.js" : " ^10.4.0" ,
80
80
"hosted-git-info" : " ^3.0.4" ,
81
- "html-entities" : " ^1.2.1 " ,
81
+ "html-entities" : " ^2.0.6 " ,
82
82
"inflected" : " ^2.0.3" ,
83
83
"jsdom" : " ^16.4.0" ,
84
84
"json-api-serializer" : " ^2.2.1" ,
Original file line number Diff line number Diff line change @@ -9172,10 +9172,10 @@ html-encoding-sniffer@^2.0.1:
9172
9172
dependencies:
9173
9173
whatwg-encoding "^1.0.5"
9174
9174
9175
- html-entities@^1.2.1 :
9176
- version "1.4.0 "
9177
- resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-1.4.0. tgz#cfbd1b01d2afaf9adca1b10ae7dffab98c71d2dc "
9178
- integrity sha512-8nxjcBcd8wovbeKx7h3wTji4e6+rhaVuPNpMqwWgnHh+N9ToqsCs6XztWRBPQ+UtzsoMAdKZtUENoVzU/EMtZA ==
9175
+ html-entities@^2.0.6 :
9176
+ version "2.0.6 "
9177
+ resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-2.0.6. tgz#e773b9acfad65718dd194e599f1b11cf5704b925 "
9178
+ integrity sha512-SiH2gwQT78XunjDZfXAa6KrE91kzZUGbef3PL9JmWS+DhL48/+FC+1sNh++/titGzIs8NvH+xuNam/FwV7mJsQ ==
9179
9179
9180
9180
html-tags@^3.1.0:
9181
9181
version "3.1.0"
You can’t perform that action at this time.
0 commit comments