8000 Unable to parse seperator <hr /> · Issue #14 · Jxck/html2json · GitHub
[go: up one dir, main page]

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.
Unable to parse seperator <hr /> #14
@wongmunchoong

Description

@wongmunchoong

I used the html2json to parse my tinymce content to json format. so far all working until i put in
<hr />
i got this error

Uncaught (in promise) TypeError: Cannot read property 'child' of undefined
    at Object.HTMLParser.start (http://localhost:3000/html2json.js:69:21)
    at parseStartTag (https://cdn.rawgit.com/blowsie/Pure-JavaScript-HTML5-Parser/master/htmlparser.js:217:14)
    at String.replace (native)
    at HTMLParser.HTMLParser (https://cdn.rawgit.com/blowsie/Pure-JavaScript-HTML5-Parser/master/htmlparser.js:147:16)
    at html2json (http://localhost:3000/html2json.js:27:5)
    at http://localhost:3000/init.js:43:17
    at http://localhost:3000/js/tinymce/tinymce.min.js:10:19381
    at http://localhost:3000/js/tinymce/tinymce.min.js:10:18445

what my init,js do is just getContent from tinymce and just call html2json.

is this a known issue?

Thanks

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

      0