Why does PHP echo'd text lose its formatting?

前端 未结 7 1782
南旧
南旧 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

提交回复
热议问题