Hi I have a html like
<html>
<head>
<title>
Some title
</title>
</head>
<body>
<div id="one"> some sample info </div>
</body>
</html>
How can I remove white spaces in this html except those in contents and within the tags using some regex using preg_replace? so to get something like this
<html><head><title>Some title</title></head><body><div id="one">some sample info</div></body></html>
please can anyone help me with this?? :)