Welcome! » Log In » Create A New Profile

remove a tag if followed by a particular tag

Posted by jpdupont 
remove a tag if followed by a particular tag
May 04, 2018 09:38AM

Hello, I must clean some html code from old articles of a cms. I want to remove <br/> tag followed by a </li>. How ? Or somme <br> codes used to push the space (br tags alone on a line)... Possible with HTML purifier, or I must use a regex replace ? Thanks !

Edited 1 time(s). Last edit at 05/04/2018 03:29PM by Ambush Commander.

Re: remove a tag if followed by a particular tag
June 09, 2018 10:36PM

HTML Purifier doesn't support it. Do a regex and then HTML Purify.

Sorry, you do not have permission to post/reply in this forum.