mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 17:59:39 +02:00
Sanitize text of the box
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user