Python-Markdown 介绍
MarkDown 的 python 实现。
示例代码:
import markdown import bleach html = bleach.clean(markdown.markdown(untrusted_text)) md = markdown.Markdown(safe_mode='replace', html_replacement_text='--RAW HTML NOT ALLOWED--')
程序名称:Python-Markdown
MarkDown 的 python 实现。
示例代码:
import markdown import bleach html = bleach.clean(markdown.markdown(untrusted_text)) md = markdown.Markdown(safe_mode='replace', html_replacement_text='--RAW HTML NOT ALLOWED--')