How can I convert this line:
<user_profil><username>root</username><email> root@foo.bar </email></user_profil>
into something formatted as:
<user_profil> <username>root</username> <email> root@foo.bar </email> </user_profil>
using regex.
Also I don't understand why $doc->saveHTML()
(an instance of DOMDocument) returns the result in only one line.
Jedot source share