Text2Html(str) {
if (str == null) {
return "";
} else if (str.length == 0) {
return "";
}
str =str.replace(new RegExp("\n","gm"),"<br />")
str =str.replace(new RegExp("\r","gm"),"<br />")
 
return str;
}

相关文章:

  • 2021-12-27
  • 2022-01-14
  • 2021-11-13
  • 2022-12-23
  • 2021-11-09
  • 2022-01-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-09-08
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案