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.

html.replace is not a function #29

@fasalgad

Description

@fasalgad

app.js:1257 Uncaught TypeError: html.replace is not a function
at removeDOCTYPE (app.js:1257)
at html2json (app.js:1263)
at HTMLButtonElement.button (app.js:4045)

function removeDOCTYPE(html) {
return html
.replace(/<?xml.?>\n/, '')
.replace(/<!doctype.
>\n/, '')
.replace(/<!DOCTYPE.*>\n/, '');
}
image
image

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