malikah Posted December 17, 2007 Share Posted December 17, 2007 Hi, is there a way to copy and paste paragraphs of text into a text area and have it detect where the <br /> tags are? Quote Link to comment Share on other sites More sharing options...
adam291086 Posted December 17, 2007 Share Posted December 17, 2007 http://uk2.php.net/manual/en/function.str-replace.php here you go. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 17, 2007 Share Posted December 17, 2007 If you want to convert newlines into HTML line breaks (<br />). Then use nl2br. Quote Link to comment Share on other sites More sharing options...
malikah Posted December 17, 2007 Author Share Posted December 17, 2007 Both were great answers - I went with nl2br. Now how about if I want to include bolded or underlined words? Actually I should start a new thread for this.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.