I have a situation here, I have a String and I must to replace this <br> to <br />. To do it I can use replace or replace all, but some parts of the text I have <br style='font-size: 14px;'> <a><a/> and I need replace to <br style='font-size: 14px;' /> <a><a/> and any others similar situations in the same string;
IN
"<br> text here <br/> text here <br> text here <br style='font-size: 14px;'> <a><a/>"
EXPECTED OUT
"<br /> text here <br /> text here <br /> text here <br style='font-size: 14px;' /> <a><a/>"
Can you help me with this simple logic? replace only <br cases