vb.net 换行符的转换

sText = sText.Replace("'", "''")
            sText = sText.Replace(" ", " ")
            sText = sText.Replace(Chr(13) + Chr(10), "<br>")
显示的时候 txtcontent.Text = dt.Rows(0)("content").ToString.Replace("<br>", Chr(13) + Chr(10)).Replace("&nbsp;", " ").Replace("''", "'")

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-23
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案