<pre name="code" class="php"><body>
<?php
if(isset($_POST['content'])){
echo preg_replace('/\r\n/','',htmlspecialchars($_POST['content']));
}
?>
<form method="post" action="" style="width:500px;margin:0 auto">
<textarea name="content" cols="50" rows="15"></textarea>
<input type="submit">
</form></body>
php 去除回车换行
最新推荐文章于 2021-03-25 07:09:20 发布