I need replace spaces with inside HTML elements.
Example:
<table atrr="zxzx"><tr>
<td>adfa a adfadfaf></td><td><br /> dfa dfa</td>
</tr></table>
should become
<table atrr="zxzx"><tr>
<td>adfa a adfadfaf></td><td><br /> dfa dfa</td>
</tr></table>
use regex to catch data between tags
then replace
' 'with' 'also to catch before and after html :
Edit:
here you go….
it works… slightly modified but it would work without modifications (but i dont think youd understand the code 😉 )