mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-02 13:51:40 -08:00
Escape description HTML
This commit is contained in:
parent
e78c9d6ed7
commit
478c69573a
1 changed files with 3 additions and 0 deletions
|
|
@ -1049,6 +1049,9 @@ class ExtraNetworksPage:
|
|||
if not description:
|
||||
description = ""
|
||||
|
||||
if not shared.opts.extra_networks_card_description_is_html:
|
||||
description = html.escape(description)
|
||||
|
||||
model_specific = self.get_model_detail_extra_html(model_name)
|
||||
|
||||
return self.model_details_tpl.format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue