Jump to content

trim whitespace from left and right of html tags


sspoke

Recommended Posts

How am i to do this either a php builtin function i am unaware about or something simple with regular expressions replacing

 

I need a way to remove whitespace (tabs,spaces,newlines,etc) and anything else that seperates <> tags such as

 

<td class="subject solvedbg">
<div>
	<span id="msg_1">blah blah space   see
	<a href="blahblah>
</div>
</td>

 

to

 

<td class="subject solvedbg"><div><span id="msg_1">blah blah space   see<a href="blahblah></div></td>

 

Thank you.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.