I think, you could use the addslashes template tag to escape new lines, like: {{ form.embeddedvideo.0.type|addslashes }}
And if that doesn't work as expected, in your case, I would write my own template tag for escaping strings. Good luck! Aidas Bendoraitis [aka Archatas] On 11/8/06, Dagur <[EMAIL PROTECTED]> wrote: > > Sorry for the vague explanation. To make a long story short I'm trying > to put the output of {{ blah }} into a javascript string, but since {{ > blah }} prints out multiple lines, it won't work. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---