mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Sanitize text of the box
This commit is contained in:
parent
117f0ab6da
commit
7b5bebd9c4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user