Why does PHP echo'd text lose its formatting?

前端 未结 7 1730
南旧
南旧 2020-11-27 21:39

Any ideas why formatted text from DB, when echo-ed out in php loses its formatting, i.e. no new lines? Thanks!

\

相关标签:
7条回答
  • 2020-11-27 22:37

    This should be helpful in answering. How do I keep whitespace formatting using PHP/HTML?enter link description here

    Set up a string preprocessing code for both input to database and output to display page

    0 讨论(0)
提交回复
热议问题