linkedom
linkedom copied to clipboard
" converted to " on xml
Thank you for good project! (2)
import { DOMParser } from "linkedom";
console.log(new DOMParser().parseFromString(`<html id="main-window" data-l10n-args="{"content-title":"CONTENTTITLE"}"></html>`, "text/xml").toString());
console.log(new DOMParser().parseFromString(`<html id="main-window" data-l10n-args="{"content-title":"CONTENTTITLE"}"></html>`, "text/html").toString());
❯ node test.js
<?xml version="1.0" encoding="utf-8"?><html id="main-window" data-
l10n-args="{"content-title":"CONTENTTITLE"}" />
<html id="main-window" data-l10n-args="{"content-title":
"CONTENTTITLE"}"></html>
the "
changed to "
, and it occurs error in xml.
node v20.11.1 linkedom v0.16.10