html-get 2.17.0-2 → 2.17.0-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/html.js +1 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "html-get",
3
3
  "description": "Get the HTML from any website, fine-tuned for correction & speed",
4
4
  "homepage": "https://nicedoc.com/microlinkhq/html-get",
5
- "version": "2.17.0-2",
5
+ "version": "2.17.0-3",
6
6
  "main": "src/index.js",
7
7
  "bin": {
8
8
  "html-get": "bin/index.js"
package/src/html.js CHANGED
@@ -93,6 +93,7 @@ const addBody = ({ url, headers, html }) => {
93
93
  const rewriteMetaTags = ({ $ }) => {
94
94
  $('meta').each((_, element) => {
95
95
  const el = $(element)
96
+ if (!el.attr('content')) return
96
97
 
97
98
  const name = el.attr('name')
98
99
  const property = el.attr('property')