html-encode
Advanced tools
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "homepage": "https://github.com/Kikobeats/html-encode", | ||
| "version": "2.1.8", | ||
| "version": "2.1.9", | ||
| "main": "index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
+1
-1
@@ -26,3 +26,3 @@ # html-encode | ||
| const { body: buffer, headers } = await got(url, { responseType: 'buffer' }) | ||
| const str = toUTF8(buffer, headers['content-type']) | ||
| const str = toUTF8(buffer, headers['content-type']?.split(';')[0].toLowerCase()) | ||
| console.log(str) | ||
@@ -29,0 +29,0 @@ })() |
6126
0.48%