Decluttering card does not handle text values with new line characters properly. #47
Open
2 tasks done
Labels
bug
Something isn't working
Checklist:
Release with the issue:
Home Assistant: 2022.2.3
decluttering card: 0.6.3
Probably a long time issue. It can be easily reproduced in v0.5 at least.
Last working release (if known):
?
Browser and Operating System:
Firefox 96.0.3 (windows 10)
Google Chrome 99.0 (windows 10)
HA mobile app 2022.1.1 (Android 11)
Description of problem:
Decluttering card does not handle text values with new line characters properly.
Error card with "Unexpected token in JSON at positon xxx" is shown in Lovelace.
"Unexpected token" error is thrown from JSON.parse() method is shown in browser console.
Javascript errors shown in the web inspector (if applicable):
Additional information:
Create markdown card in UI editor and make a simple template out of it.
The text was updated successfully, but these errors were encountered: