Sanitize error text

This commit is contained in:
Cohee 2024-05-24 22:05:28 +03:00
parent d5f6849c8e
commit 2f2a4fca35

View File

@ -1350,7 +1350,7 @@ class PromptManager {
const errorDiv = `
<div class="${this.configuration.prefix}prompt_manager_error">
<span class="fa-solid tooltip fa-triangle-exclamation text_danger"></span> ${this.error}
<span class="fa-solid tooltip fa-triangle-exclamation text_danger"></span> ${DOMPurify.sanitize(this.error)}
</div>
`;