mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 14:39:34 +01:00
7 lines
203 B
JavaScript
7 lines
203 B
JavaScript
import { parse } from "node-html-parser";
|
|
|
|
export const parseHTML =
|
|
typeof DOMParser === "undefined"
|
|
? (input) => parse(input)
|
|
: (input) => new DOMParser().parseFromString(input, "text/html");
|