enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
202 stars 34 forks source link

Macro parameters from TextLine, TextArea are converted with Html Entities #5928

Closed RF0 closed 6 years ago

RF0 commented 6 years ago

When parameters from Macro TextLine or TextArea contain special characters like f.x. æøå the context.params object in javascript controller delivered the values escaped as HtmlEntities æøå

Either this is a bug, or it should be documented in the macro documentation that this is the case, and how to best decode these back to normal text.

Tested in XP 6.11.0 and 6.13.0.

screen shot 2018-01-10 at 11 36 39
RF0 commented 6 years ago

The code in the screenshot is from this repo.