natalieG Posted July 10, 2007 Share Posted July 10, 2007 we have some paragraphs that have <BR>,<P> buried in them and want to modify them so that <BR> stars a new line and <P> begins a new paragraph. We tried the below: $NOTE = str_replace("<P>","n\r",$NOTE); $NOTE = str_replace("<BR>","\n",$NOTE); It looks like the 1st replace does not work and the second one does. We are outputting the paragraphs to a PDF generatorn and it needs a text file with proper line and paragraph codes. Thanks, Natalie Link to comment https://forums.phpfreaks.com/topic/59188-paragraph-formatting/ Share on other sites More sharing options...
no_one Posted July 10, 2007 Share Posted July 10, 2007 How about 2: \n\n for <p>? Link to comment https://forums.phpfreaks.com/topic/59188-paragraph-formatting/#findComment-293997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.