PDA

View Full Version : txt to html


Dimava
Sat 8th Jun '02, 6:28pm
I have a variable that contains about 50 lines of text, some of the lines are blank, and some lines contain url's. How can I convert the text into html, putting in <br>s for the next line, 2 <br>s for a blank line, and the code for hyperlinks

thanks

Dimava

Raz Meister
Tue 18th Jun '02, 8:01am
Use nl2br($yourvariable);