diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index a4c366f29..6205195bc 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -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(