mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Run showdown output through sanitize
This commit is contained in:
@ -1225,6 +1225,9 @@ function messageFormatting(mes, ch_name, isSystem, isUser) {
|
|||||||
//console.log('mes after removed <tags>')
|
//console.log('mes after removed <tags>')
|
||||||
//console.log(mes)
|
//console.log(mes)
|
||||||
} */
|
} */
|
||||||
|
|
||||||
|
mes = DOMPurify.sanitize(mes);
|
||||||
|
|
||||||
return mes;
|
return mes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user