Php 再次将标记使用的内容转换为html

Php 再次将标记使用的内容转换为html,php,markdown,Php,Markdown,对不起,我不完全确定标题应该是什么 我已经使用降价来存储我正在使用的内容表单数据库 $newcontent = Markdown($content); 它的工作很好,我已经连续地将数据存储在数据库中,但当我从数据库中获取数据时,它会显示html内容,如 <pre class="prettyprint"><code><?php $link = mysql_connect(\'localhost\', \'user\', \'pass\'); mysql_se

对不起,我不完全确定标题应该是什么

我已经使用降价来存储我正在使用的内容表单数据库

$newcontent  =   Markdown($content); 
它的工作很好,我已经连续地将数据存储在数据库中,但当我从数据库中获取数据时,它会显示html内容,如

<pre class="prettyprint"><code><?php
$link = mysql_connect(\'localhost\', \'user\', \'pass\');
mysql_select_db(\'testdb\', $link);
mysql_set_charset(\'UTF-8\', $link);
</code></pre>
它会引起警告

我想得到像这样的内容

    <property name="sci:doc">
     <type>d:text</type>
     <index enabled="true"> 
       <atomic>true</atomic> 
       <stored>false</stored> 
       <tokenised>false</tokenised> 
     </index>
    </property>

this is the `<pre>`

heading
------

如何做到这一点?谢谢

请评论进一步的信息…我会提供。markdownify库是什么/在哪里?@Dale已经包括在内,@Dale我应该在降价后和降价前分别存储它们吗?
    <property name="sci:doc">
     <type>d:text</type>
     <index enabled="true"> 
       <atomic>true</atomic> 
       <stored>false</stored> 
       <tokenised>false</tokenised> 
     </index>
    </property>

this is the `<pre>`

heading
------
    require_once "includes/markdown.php"; 
   include'includes/markdownify.php';