我想在我的网站上创建一个帖子系统。
源是一个HTML textarea值,它插入MySQL数据库并显示如下:
<div align='center' style='background-color: #FFFFFF;text-align:left;width: 500px;padding: 10px;border-top: 5px solid #F45144;'>
<center><h1 style='color:#F45144;margin-top: -10;'>$Title</h1></center>
<p>
$Post
</div>
<br>
<style>br{line-height: 600%;}</style>
但文字格式不正确。 (&#34; $ Title&#34;和&#34; $ Post&#34;是来自数据库的2个变量)
我想像img1一样插入并获得img4中的结果。 (无需插入<br>
)