Sanitize text of the box

This commit is contained in:
oleveau 2023-01-11 22:10:41 +01:00
parent 117f0ab6da
commit 7b5bebd9c4

View File

@ -240,7 +240,10 @@ export const parseBoxData = function (str) {
const boxData = {
color: color,
text: title !== undefined ? title.replace(/^:?(?:no)?wrap:/, '') : undefined,
text:
title !== undefined
? sanitizeText(title.replace(/^:?(?:no)?wrap:/, ''), configApi.getConfig())
: undefined,
wrap:
title !== undefined
? title.match(/^:?wrap:/) !== null