Comment console.log in sanitizeText

This is to avoid console window be flooded with 'security level' messages
This commit is contained in:
Oleg Aksenov 2021-10-03 18:08:53 +03:00 committed by GitHub
parent d040883286
commit b22422f4b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,7 @@ const sanitizeMore = (text, config) => {
};
export const sanitizeText = (text, config) => {
const level = config.securityLevel;
console.log('security level', level);
// console.log('security level', config.securityLevel);
if (!text) return text;
const txt = DOMPurify.sanitize(sanitizeMore(text, config));
return txt;