[Answer]-How to substitute string coming from django in javascript?

1👍

Try the escapejs filter:

var text = '{{ each.text | escapejs }}';
👤Ry-

0👍

Check how to escape html text in template.
Refer template filter escape

👤Rohan

Leave a comment