使用django模板过滤器slice、safe结尾还是会显示html元素?
{% for news in news %}
<li>
<div>
<span class="n_l">
<a title="{{ news.product_news_title|safe|slice:"20"}}" href="dynamic_news_content.html">{{ news.product_news_title|slice:'28'|safe}}
</a>
</span>
<span class="n_date">{{ news.product_news_time }}</span>
</div>
</li>
{% endfor %}