示例#1
0
 def test_render_markdown_with_xss(self):
     t = '    <script>'
     r = render_markdown(t).strip()
     assert r == '<pre><code>&lt;script&gt;</code></pre>'
示例#2
0
 def test_render_markdown_with_chinese(self):
     t = u'     牛B'
     r = render_markdown(t).strip()
     assert r == u'<pre><code>\u725bB</code></pre>'
示例#3
0
 def test_render_markdown_simple(self):
     t = 'aa'
     r = render_markdown(t).strip()
     assert r == '<p>aa</p>'