core.py 文件源码

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

项目:sphinxcontrib-websupport 作者: sphinx-doc 项目源码 文件源码
def _parse_comment_text(self, text):
        settings = {'file_insertion_enabled': False,
                    'raw_enabled': False,
                    'output_encoding': 'unicode'}
        try:
            ret = publish_parts(text, writer_name='html',
                                settings_overrides=settings)['fragment']
        except Exception:
            ret = htmlescape(text)
        return ret
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号