문제

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 writing 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().

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top