[Answer]-XML Rendering in DIV

1👍

{{ log }} inserts the escaped html, not the raw. So $('#logbuffer').innerHTML returns the

<?xml ... ?>
<?xml-stylesheet type="text/xsl" ... ?>
and so on...

You have to mark the log variable as safe:

{{ log|safe }}

Leave a comment