mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Escape description HTML
This commit is contained in:
parent
e78c9d6ed7
commit
478c69573a
@ -1049,6 +1049,9 @@ class ExtraNetworksPage:
|
|||||||
if not description:
|
if not description:
|
||||||
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)
|
model_specific = self.get_model_detail_extra_html(model_name)
|
||||||
|
|
||||||
return self.model_details_tpl.format(
|
return self.model_details_tpl.format(
|
||||||
|
Loading…
Reference in New Issue
Block a user