fix: extra network ui description allow HTML tags

This commit is contained in:
Littleor 2023-07-26 17:23:57 +08:00
parent b73c405013
commit 187323a606
1 changed files with 1 additions and 1 deletions

View File

@ -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", ""),