当前位置:首页 > ASP教程 > 应用技巧

asp文本框换行显示代码

复制代码 代码如下:

<%
function chtmlencode(fstring)
fstring = replace(fstring, chr(13), "")
fstring = replace(fstring, chr(10), "<br> ")
chtmlencode= fstring
end function
%>

调用时候使用
<%=chtmlencode(rs("字段内容"))%>
php文本框换行显示
$str = str_replace("n","<br>", $str);
【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!