0
如何正確呈現以下內容?如何在django中完全按照原樣呈現代碼塊
<pre>
<code class="language-markdown">
{% autoescape off %}
<Item>hello</Item>
{% endautoescape %}
</code>
</pre>
基本上,我想讓它顯示了XML,如:
<Item>Hello</Item>
,而不是試圖與剝去標籤。相反,它只是在沒有標籤的情況下打印「Hello」。請注意,verbatim
標籤也不適用於我。