defaultfilters.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:liberator 作者: libscie 项目源码 文件源码
def escape_filter(value):
    """
    Marks the value as a string that should be auto-escaped.
    """
    with warnings.catch_warnings():
        # Ignore mark_for_escaping deprecation -- this will use
        # conditional_escape() in Django 2.0.
        warnings.simplefilter('ignore', category=RemovedInDjango20Warning)
        return mark_for_escaping(value)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号