Is it possible to make HTML Purifier to replace double <br>
with <p>
and at the same time not to delete single one? How easy it is to make?
We are trying to change double <br>
into <p>
in user genereated content and we use HTML Purifier for this purpose. But it seems this library cuts out all single <br>
at the same time.
p.s. I am not a programmer, I am a product manager. And I asked to configure the text parser (we use HTML Purifier) on our service to let it use tags <p>
insted of <br><br>
in user generated texts. The programmer has done this but the next problem arises: the parser begins to cut out single line break <br>
. And I was told that it is impossible or very hard to fix it. I am confused, I worked with regular expressions before and this was not a problem at all.
insted of
– karaboz Oct 07 '14 at 14:01in user generated texts. The programmer has done this but the next problem arises: the parser begins to cut out single line break
. And I was told that it is impossible or very hard to fix it. And I am confused. I worked with regular expressions before and this was not a problem at all.