feat: migrate to node-html-parser

This commit is contained in:
thecodrr
2021-11-25 09:46:45 +05:00
parent 1f6088a864
commit 92a8239899
11 changed files with 299 additions and 5414 deletions

View File

@@ -0,0 +1,6 @@
import { parse } from "node-html-parser";
export const parseHTML =
typeof DOMParser === "undefined"
? (input) => parse(input)
: (input) => new DOMParser().parseFromString(input, "text/html");