Why does PHP echo'd text lose its formatting?

前端 未结 7 1781
南旧
南旧 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:19

    The difference between the two images you show is that one has the text in a and the other does not ... if you want 1:1:

提交回复
热议问题