<span style="float:left;"><textarea id="content" name="content">{$vo.content}</textarea></span><span class="require-field">*</span>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace('content',{width:600});
//]]>
</script>
以下是我从数据库读出来的内容,这些内容是通过ckeditor编辑以后传进数据库的<p style="text-align: center;">
<u><strong><em><span style="font-size:26px;">21212</span></em></strong></u></p>
<p>
<u><strong><em><span style="font-size:26px;">213131312121</span>121212321</em></strong></u></p>
<ol>
<li>
<span style="font-size:36px;">232123213<br />
</span></li>
</ol>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace('content',{width:600});
//]]>
</script>
以下是我从数据库读出来的内容,这些内容是通过ckeditor编辑以后传进数据库的<p style="text-align: center;">
<u><strong><em><span style="font-size:26px;">21212</span></em></strong></u></p>
<p>
<u><strong><em><span style="font-size:26px;">213131312121</span>121212321</em></strong></u></p>
<ol>
<li>
<span style="font-size:36px;">232123213<br />
</span></li>
</ol>
htmlspecialchars($,ENT_QUOTES,'UTF-8') //轉為HTML實體,且中文不亂碼
htmlspecialchars_decode($,ENT_QUOTES) //把HTML實體反向轉換
轉換一下就行了