I want to join lines between opening tag and closing tag with class named “content_subhd”,
For example:
<span class="content_subhd">1
2
3 </span>
<span class="xyz">1
2
3</span>
Output should be:
<span class="content_subhd">123</span>
<span class="xyz">1
2
3
</span>
How can this be achieve, any suggestion?
If you want to replace the content of your existing file:
Added solution for mass replacement (as per OP request):