huginn: Unexpected `\` esacpe in json
Step to reproduce:
- Enter agent edit page
- Click on
Toggle View, enter raw json edit mode - Edit some field so it contains
\
- Click on
Toggle View(Enter visual edit mode), then Click onToggle Viewagain (enter raw json edit mode)
Expected: message is still a\nb
Actual: message becomes a\\nb

Or even worse:
- Create a new agent, enter raw json edit mode, edit, carefully not to click on “Toggle View”
- Save the agent
- Edit the agent, do nothing, save the agent again
Expected: message is still a\nb
Actual: message becomes a\\nb

About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 17 (10 by maintainers)
I see, to be honest I am surprised that
"{{title}}\n{{content}}"works, as far as I know it should be invalid JSON. If you want to insert an actual line break character you can use the{% line_break %}Liquid tag.