You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've investigated the issue a bit. There are two separate challenges:
Escaping HTML entities. This might be a new option for draw.DOT and is a feature on its own.
Handling escaped double quotes (\") like in your example. The escaping backslash being removed is a bug, and it seems to happen when rendering the template: https://go.dev/play/p/DvuB5B8ywIV
I'll focus on the \" bug for now. Maybe the escaping backslash can be preserved somehow.
Activity
Zincr0 commentedon Apr 12, 2023
Note: strconv.Quote() seems to be doing the job quite well in my latest tests
dominikbraun commentedon Apr 12, 2023
I've investigated the issue a bit. There are two separate challenges:
draw.DOTand is a feature on its own.\") like in your example. The escaping backslash being removed is a bug, and it seems to happen when rendering the template: https://go.dev/play/p/DvuB5B8ywIVI'll focus on the
\"bug for now. Maybe the escaping backslash can be preserved somehow.