为什么html标记显示为文本?
我的代码如下所示 python:为什么html标记显示为文本?,html,python-2.7,tags,markdown,Html,Python 2.7,Tags,Markdown,我的代码如下所示 python: render = web.template.render('templates/', base="layout") . . . fileout_text = codecs.open(filename_text, 'r', 'utf-8').read() text = markdown.markdown(fileout_text) return render.text_temple(text=text) text_template.html: $def with
render = web.template.render('templates/', base="layout")
.
.
.
fileout_text = codecs.open(filename_text, 'r', 'utf-8').read()
text = markdown.markdown(fileout_text)
return render.text_temple(text=text)
text_template.html:
$def with text
< text>$text < /text>
带文本的$def
$text
现在$text应该包含html标记,而不是标记语法。
我的问题是,当网站显示时,标签保持为文本。
任何帮助都将不胜感激。很抱歉,我的拼写错误英语不是我的第一语言。这似乎是