html string:
<pre>
<code>
1
2
3
4
5
<span>a</span>
<span>b</span>
<span>c</span>
</code>
</pre>
outputs:
<pre><code>
1
2
3
4
5
<span>a</span><span>b</span><span>c</span></code></pre>
expected outputs:
<pre><code>
1
2
3
4
5
<span>a</span>
<span>b</span>
<span>c</span></code></pre>
the a, b, c in pre in not in one line (as pre will keep the line break), but the parsed result puts them together
react-html-parser version: "2.0.2"
html string:
outputs:
expected outputs:
the
a,b,cin pre in not in one line (asprewill keep the line break), but the parsed result puts them togetherreact-html-parserversion: "2.0.2"