Need script that inserts <BR> between paragraphs in txt files

by 2 replies
3
This may already exist, but I don't know where to find it:

I need a program/script/solution of some kind to insert
Code:
<br><br>
between all paragraphs in a text file.

Say I have this text:
I want an automatic way to have the text become:
I don't need it to do anything else than add the
Code:
<br><br>
between all paragraphs in the text file. Is there a cheap/easy way to do this?

I'm willing to pay to have it made!

Regards,
Bjarne Eldhuset
#programming #<br> #files #inserts #paragraphs #script #txt
  • Nevermind, I found a freely downloadable tool that did this, only using the <P> code instead. I found it at easy HTools: Downloads The tool was called Easy Text To HTML Converter. Worked out nicely.
  • If you run the text through PHP, you can use the nl2br function.

    If your text is encapsulated in HTML paragraph tags, you'll need to consider regular expressions.

    That said, there's probably some desktop software that can do this for you.

Next Topics on Trending Feed