[utils] fix: Also replace & in user strings
This commit is contained in:
parent
d267c04286
commit
415a6559d3
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ export function clone(obj) {
|
|||
*/
|
||||
export function escapeSvgText(text) {
|
||||
return String(text)
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue