I have a PHP/MySQL app that when a user enters a description of there club that it reports back on a group page. When a user enters there information the line breaks are removed and all becomes one long string. Is there anyway that I can keep there line breaks? Also there is a problem with ' showing up correctly but im sure it is related to the first issue.
emclinux 0 Newbie Poster
Recommended Answers
Jump to PostAll of those
str_replace
's are unnecessary. There is a built in PHP function.$formatted_text = nl2br($text);
All 3 Replies
sikka_varun 0 Junior Poster in Training
ShawnCplus 456 Code Monkey Team Colleague
emclinux 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.