summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/metascraper/src/load-html.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/metascraper/src/load-html.js')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/metascraper/src/load-html.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/metascraper/src/load-html.js b/bin/wiki/ImportarDesdeURL/node_modules/metascraper/src/load-html.js
new file mode 100644
index 00000000..330e3f51
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/metascraper/src/load-html.js
@@ -0,0 +1,10 @@
+'use strict'
+
+const cheerio = require('cheerio-advanced-selectors').wrap(require('cheerio'))
+
+module.exports = (html = '') =>
+ cheerio.load(html, {
+ lowerCaseTags: true,
+ decodeEntities: true,
+ lowerCaseAttributeNames: true
+ })