<script type="text/javascript">
$(function () {
$(".contentxin").each(function() {
var temp = $(this).text().replace(/\n|\r\n/g,'<br/>');
temp = temp.replace(/\s/g," ");
$(this).html(temp);
});
})
</script>
正确输出<textarea></textarea>编辑的内容格式
最新推荐文章于 2024-08-30 10:55:41 发布