Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse html document #46

Closed
kapouer opened this issue Aug 7, 2018 · 2 comments
Closed

Parse html document #46

kapouer opened this issue Aug 7, 2018 · 2 comments

Comments

@kapouer
Copy link

kapouer commented Aug 7, 2018

It would be so nice to support parsing html documents, along the lines of

var parser = new DOMParser();
../..
if (/^\s*<html[\s>]/.test(str)) {
  var ndoc = parser.parseFromString(str, 'text/html');
  return doc.adoptNode(ndoc.documentElement);
}

Even better if it had the ability to handle docstrings (xml vs. html).

@stephenmathieson
Copy link
Contributor

This component isn't really "maintained" anymore. We're not looking for new features, and are really only around to merge PRs fixing bugs.

Feel free to fork this component and create your own package tho!

@sindresorhus
Copy link
Owner

I think this is outside the scope of this package.

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants