django的template中截取html內容

環境 django: v2.0.6 問題:使用slice會由於html未閉合致使整個頁面排版錯亂!html 代碼 常見:web <div class="col-sm-8"> <p> {% autoescape off %} {{ post.summary|slice:"200"
相關文章
相關標籤/搜索