Why does PHP echo'd text lose its formatting?

前端 未结 7 1758
南旧
南旧 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:22

    It does output what you say to output. If the text is pre-formatted, put it inside the HTML

     tag in your output script.

提交回复
热议问题