Special caracters in string in global variable read by JSON in Node-RED (variable names are in naitive language)

I have a template in Node-RED in which I read 3 global variables, one of these is a string that often contains the “>” symbol. tho after this template, whith output “parsed JSON”, it doesn’t show “>” but “&gt”

this is my code:

{"stsGestart": "{{global.stsGestart}}", "lvlTank": "{{global.lvlTank}}", "stsTank": "{{global.StatusTank}}"}

I have debuged every step of the proces it happens right after the template

how can i fix my issue

reddit recomended this:

let result = { "stsGestart": stsGestart, "lvlTank": lvlTank, "stsTank": StatusTank } return JSON.stringify(result)
but “let” is an “invalid symbol”