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? Link to comment https://forums.phpfreaks.com/topic/82044-auto-detect-tags/ 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. Link to comment https://forums.phpfreaks.com/topic/82044-auto-detect-tags/#findComment-416910 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. Link to comment https://forums.phpfreaks.com/topic/82044-auto-detect-tags/#findComment-416960 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.. Link to comment https://forums.phpfreaks.com/topic/82044-auto-detect-tags/#findComment-417042 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.