Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Uncaught (in promise) Parse Error: <!DOCTYPE html> #34

@marcelovue

Description

@marcelovue

image

I think I'm having a issue at the same function of this guy
To solve this problem I had to remove the <!DOCTYPE html> on my own

let content = await axios.get(word)
      .then(res => res.data.replace(/<!DOCTYPE.*>\n?/igm, ''))
let parsed = html2json(content)

Maybe it can help someone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions