Fix parsing of HTML in model descriptions.

This commit is contained in:
Sj-Si 2024-05-31 11:43:37 -04:00
parent a3e9b0ce04
commit 19f2c61f4c
7 changed files with 57 additions and 4 deletions

View file

@ -12,6 +12,7 @@
isElementLogError,
keyExistsLogError,
htmlStringToElement,
convertElementShadowDOM,
*/
/*eslint no-undef: "error"*/
@ -260,6 +261,7 @@ class ExtraNetworksClusterize extends Clusterize {
return;
}
const parsed_html = htmlStringToElement(new_html);
convertElementShadowDOM(parsed_html, "[data-parse-as-shadow-dom]");
// replace the element in DOM with our new element
elem.replaceWith(parsed_html);