I have an xml file containing 6000 element like LastName and FirstName.
I need to remove new line inside element value.
Input:
<info>
<LastName>
HOOVER
</LastName>
</info>
Output:
<info>
<LastName>
HOOVER
</LastName>
</info>
I've tried preg_replace
and str_replace
for space and \n
, \t
, \r
and failed.