|
@@ -55,6 +55,7 @@ this.SingleFileBrowser = this.SingleFileBrowser || (() => {
|
|
|
const domUtil = {
|
|
const domUtil = {
|
|
|
getResourceContent,
|
|
getResourceContent,
|
|
|
parseDocContent,
|
|
parseDocContent,
|
|
|
|
|
+ parseXMLContent,
|
|
|
parseSVGContent,
|
|
parseSVGContent,
|
|
|
isValidFontUrl,
|
|
isValidFontUrl,
|
|
|
digestText,
|
|
digestText,
|
|
@@ -117,6 +118,10 @@ this.SingleFileBrowser = this.SingleFileBrowser || (() => {
|
|
|
return (new DOMParser()).parseFromString(content, "text/html");
|
|
return (new DOMParser()).parseFromString(content, "text/html");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ function parseXMLContent(content) {
|
|
|
|
|
+ return (new DOMParser()).parseFromString(content, "text/xml");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
function parseSVGContent(content) {
|
|
function parseSVGContent(content) {
|
|
|
return (new DOMParser()).parseFromString(content, "image/svg+xml");
|
|
return (new DOMParser()).parseFromString(content, "image/svg+xml");
|
|
|
}
|
|
}
|