mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-04 13:55:06 +08:00
fix: extra network ui description allow HTML tags
This commit is contained in:
parent
b73c405013
commit
187323a606
@ -254,7 +254,7 @@ class ExtraNetworksPage:
|
||||
"tabname": quote_js(tabname),
|
||||
"local_preview": quote_js(item["local_preview"]),
|
||||
"name": html.escape(item["name"]),
|
||||
"description": html.escape(item.get("description") or "" if shared.opts.extra_networks_card_show_desc else ""),
|
||||
"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"])})""") + '"',
|
||||
"search_term": item.get("search_term", ""),
|
||||
|
Loading…
Reference in New Issue
Block a user