grejon04 Posted March 21, 2008 Share Posted March 21, 2008 I have a text area form, which takes a input in the form of a letter (which my users have been cut-pasting in rich text) but needs to be converted to HTML for line/paragraph breaks, formatting, etc... Is there an easy way (function) to convert or should I just change the forms to FCK? Link to comment https://forums.phpfreaks.com/topic/97248-quick-question-on-rich-text-html/ Share on other sites More sharing options...
papaface Posted March 21, 2008 Share Posted March 21, 2008 nl2br() Might help. Link to comment https://forums.phpfreaks.com/topic/97248-quick-question-on-rich-text-html/#findComment-497626 Share on other sites More sharing options...
grejon04 Posted March 21, 2008 Author Share Posted March 21, 2008 nl2br() Might help. The function def says it turns "\n" to "<br />"...does that mean conventional rich text carriage returns as well? I'll try it when I get a free minute, but if anyone knows if those are included, that would be helpful. Thanks for the help, by the way -- searches for "convert rich text html" weren't that fruitful. :-) Link to comment https://forums.phpfreaks.com/topic/97248-quick-question-on-rich-text-html/#findComment-497629 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.