Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么html标记显示为文本?_Html_Python 2.7_Tags_Markdown - Fatal编程技术网

为什么html标记显示为文本?

为什么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

我的代码如下所示

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 text
     < text>$text < /text>
带文本的$def
$text
现在$text应该包含html标记,而不是标记语法。 我的问题是,当网站显示时,标签保持为文本。
任何帮助都将不胜感激。很抱歉,我的拼写错误英语不是我的第一语言。

这似乎是