<pre>
Inside a pre<br>tag (<br> tags should be replaced with newline)
<!--
this is a comment inside a pre tag to show the problem with using regex to replace <br> tags inside <pre></pre> tags with newline and it shouldn't be modified at all
-->
</pre>
outside a pre<br>tag (<br> tags should stay unmodified)
<pre>
Inside a pre<br>tag (<br> tags should be replaced with newline)
</pre>