【发布时间】:2014-07-29 13:29:15
【问题描述】:
如何确保所有的 html-tags 都被关闭了?出现问题是因为我想为每篇文章创建某种摘录。比如有人写了这样一篇文章:
Hi everyone, I'm just an article and I have few <strong>tags</strong> inside <em>of me</me>
如果我在“标签”之后剪掉这条消息,我会得到一个未闭合的标签。 如何在 Django 中检查所有用户的输入文本,然后再将其保存到 DB?
【问题讨论】:
标签: python html django django-templates django-template-filters