[Answer]-Allow embed code on django template?

0👍

<pre>
  &lt;iframe 
  src=&quot;imgurl&quot;&gt;
  &lt;/iframe&gt;
</pre>

1👍

No, the Django template has nothing to do with this. Your browser sees an iframe and includes it; Django doesn’t control what happens in that iframe, because it’s taken from a completely separate URL.

0👍

You should use character codes / HTML entities for this. Something like:

<pre>
    &lt;iframe src="imgurl"&gt;&lt;/iframe&gt;
</pre>

Leave a comment