Soooo ... quick question :)
I need to do some HTML parsing with regex :)
I currently use $output = preg_replace('/>\s+</', "> <", $output)
to strip whitespace between any two HTML tags. What can I do to strip whitespace only between paragraph tags. For example, only between </p>
and <p>
tags?
Thanks!