Jump to content

Text Formatting Question


ironside82

Recommended Posts

I have a forum on my site for people to post messages. Is there a way to get the text to format correctly when the user posts it?

 

At the moment if a user types the following:

 

----

Hello everyone here is my shopping list:

 

-egg

-cheese

-milk

-bread

----

 

The results will look like: "Hello everyone here is my shopping list: -egg -cheese -milk -bread"

 

All on the same line!

 

How do I get it to recognize that there has been a new line created or any other html formatting for example and transfer it to the database so its displays correctly when it is recalled?

 

Thanks for your help

 

James

 

Link to comment
https://forums.phpfreaks.com/topic/44984-text-formatting-question/
Share on other sites

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.