Escape description HTML

This commit is contained in:
Sj-Si 2024-05-29 17:21:59 -04:00
parent e78c9d6ed7
commit 478c69573a

View File

@ -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(