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--')
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--')
评论