我正在使用安全过滤器来允许嵌入的html标记工作,但它会影响它下面的按钮。我试着把逃生过滤器和保险箱结合使用,但似乎什么都没用
<p class="card-text"> {{ post.text | truncatewords:200 | safe | escape}} </p>
<a href="{% url 'detail_post' post.id %}" class="btn btn-primary"> Read More → </a>
结果如下:
什么时候应该是:
Tags:
目前没有回答
相关问题 更多 >
编程相关推荐