开发者

how to maintain paragraph?

开发者 https://www.devze.com 2023-01-11 02:05 出处:网络
i have a problem when i insert some articles which includes paragraph to database at the time of retrieval it display article but without paragraph.

i have a problem when i insert some articles which includes paragraph to database at the time of retrieval it display article but without paragraph. so it look like dirty w开发者_Go百科riting on the page. so is there any trick or code for save article with paragraph & at time of display it shows as it is.


HTML ignores carriage returns and collapses multiple spaces. You have to insert the appropriate tags, such as <br>. Have a look at nl2br().

0

精彩评论

暂无评论...
验证码 换一张
取 消