just a quick preg replace problem
i have title tags that look like this....
i would like to change them to this...
what would be the correct way to strip out any spaces and tabs before and after the text, plus any carriage returns inside the tags?
i have title tags that look like this....
Code:
<title>
title of my page
</title>
i would like to change them to this...
Code:
<title>title of my page</title>
what would be the correct way to strip out any spaces and tabs before and after the text, plus any carriage returns inside the tags?