Jump to content

make php function to add line break


mackin

Recommended Posts

hi,

 

i am using a database to populate a webpage with text. How do I make a function to add line breaks to the text?

 

an example page I want to use it on it

http://www.stayneartheairport.com/bandb.php?id=11084507&airport=manchester

 

You can see the two text areas of description and facilities have no paragraphs or other formatting.

 

I want the code to scan the text - and if there is say <br> - it will remove it an replace it with a line break.

Link to comment
https://forums.phpfreaks.com/topic/259447-make-php-function-to-add-line-break/
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.