Get rid of <br /> but keep linebreaks

2. Help
Andy3142
2013-09-11
2013-09-11
  • Andy3142
    Andy3142
    2013-09-11

    I need to convert old HTML which has a lot of <br /> in it into HTML with <p></p> instead. Is there a simple, robust way to do this in notepad++ or any other way? (ie not involving regexp or programming!)

    Many thanks
    Andy

     
  • Ron Jensen
    Ron Jensen
    2013-09-11

    I would suggest doing a search and replace for <br/> and replacing that with </p> <p>. Notice I reversed the order.

    Then remove the first instance of </p> and the last instance of <p> from the file.

    Good luck
    Ron

     
    Last edit: Ron Jensen 2013-09-11