数据从数据库中显示到JSP页面时,换行变成了空格,怎么解决
我尝试过很多方法:1.content=replace(content,VbCrLf,"<br>")或content=replace(content,chr(13)&chr...
我尝试过很多方法:
1.content=replace(content,VbCrLf, " <br> ") 或 content=replace(content,chr(13)&chr(10), " <br> ")
出现的问题是VbCrlf cannot be resolved和The method chr(int) is undefined for the type __2F_up_2F_Noticedetail_2E_jsp
2.function HTMLEncode(fString)
if not isnull(fString) then
fString = Replace(fString, CHR(38), "& ")
fString = replace(fString, "> ", "> ")
fString = replace(fString, " < ", "< ")
fString = Replace(fString, CHR(39), "' ")
fString = Replace(fString, CHR(32), " ")
fString = Replace(fString, CHR(34), "" ")
fString = Replace(fString, CHR(13), " ")
fString = Replace(fString, CHR(10), " <br/> ")
HTMLEncode = fString
end if
end function
出现的问题是The method HTMLEncode(fString) is undefined for the type __2F_up_2F_Noticedetail_2E_jsp
谁知道我的问题出现在哪里啊?在线等~~~~开发环境:SQL,JSP,JAVA 展开
1.content=replace(content,VbCrLf, " <br> ") 或 content=replace(content,chr(13)&chr(10), " <br> ")
出现的问题是VbCrlf cannot be resolved和The method chr(int) is undefined for the type __2F_up_2F_Noticedetail_2E_jsp
2.function HTMLEncode(fString)
if not isnull(fString) then
fString = Replace(fString, CHR(38), "& ")
fString = replace(fString, "> ", "> ")
fString = replace(fString, " < ", "< ")
fString = Replace(fString, CHR(39), "' ")
fString = Replace(fString, CHR(32), " ")
fString = Replace(fString, CHR(34), "" ")
fString = Replace(fString, CHR(13), " ")
fString = Replace(fString, CHR(10), " <br/> ")
HTMLEncode = fString
end if
end function
出现的问题是The method HTMLEncode(fString) is undefined for the type __2F_up_2F_Noticedetail_2E_jsp
谁知道我的问题出现在哪里啊?在线等~~~~开发环境:SQL,JSP,JAVA 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询