Page 1 of 1

Line break conversion

Posted: Mon Jun 17, 2002 7:08 pm
by Bennettman
Is there a script that will make it so that if you include a plain txt file, the points where there's a line break in the text will still have this break inside the page, instead of just carrying on since there's no <br> tag? It would probably work if there was a script to change line breaks into this <br> tag. I just don't know how. It's for a fanfic collection, where the fics will be included into a template page. I don't want to have to waste time and effort putting all the tags into possibly hundreds of pages of writing. Can anyone here help?

Posted: Mon Jun 17, 2002 7:25 pm
by roninblade
use the nl2br() function