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 Quote 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>? Quote Link to comment https://forums.phpfreaks.com/topic/59188-paragraph-formatting/#findComment-293997 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.