擅长:python、mysql、java
<p>使用<code>autoescape template tag</code>来esacpe HTML换行符(<;br/>;)字符。</p>
<p>另外,由于您没有html <code>linebreak</code>字符,您必须使用<code>linebreaksbr</code><code>Django template filte</code>r将文本文件换行转换为html <code>linebreaks</code>,如[this][1]答案中建议的那样。</p>
<p><strong>注意</strong>:当您尝试直接用html打印时,它会起作用。</p>