Jump to content

Quick question on rich text -> HTML


grejon04

Recommended Posts

 

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

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. :-)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.