diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-26 12:17:37 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-26 12:18:04 +0000 |
commit | 8220cf37da8130980b036535bc2fba6b89417158 (patch) | |
tree | 23beb08580d60669cdf4e78eddb58a5c68671304 /modules/ui_extra_networks.py | |
parent | 055461ae41436e0fcbdf9f5c6b82c9441c6b5b5f (diff) | |
download | stable-diffusion-webui-gfx803-8220cf37da8130980b036535bc2fba6b89417158.tar.gz stable-diffusion-webui-gfx803-8220cf37da8130980b036535bc2fba6b89417158.tar.bz2 stable-diffusion-webui-gfx803-8220cf37da8130980b036535bc2fba6b89417158.zip |
Merge pull request #12020 from Littleor/dev
Fix the error in rendering the name and description in the extra network UI.
Diffstat (limited to 'modules/ui_extra_networks.py')
-rw-r--r-- | modules/ui_extra_networks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index 49612298..f2752f10 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -253,7 +253,7 @@ class ExtraNetworksPage: "prompt": item.get("prompt", None),
"tabname": quote_js(tabname),
"local_preview": quote_js(item["local_preview"]),
- "name": item["name"],
+ "name": html.escape(item["name"]),
"description": (item.get("description") or "" if shared.opts.extra_networks_card_show_desc else ""),
"card_clicked": onclick,
"save_card_preview": '"' + html.escape(f"""return saveCardPreview(event, {quote_js(tabname)}, {quote_js(item["local_preview"])})""") + '"',
|