OK, this works fine:
preg_replace('/<(\/?.+?)>/s','<$1>', $string);
but I don't quite understand it. Why the "+?" after the period? The + means 1 or more characters, and the ? means 0 or 1 characters, so I'm not sure what that adds up to. Seems like I'd only need the +, since I'm certainly going to want at least one character between my <>.
Also not clear why there's an "s" at the end - is that so the period matches newlines within the tag?
I'm trying to refine this so I can replace all the '"'s with '"' within the tag. I'm a little puzzled about the best way to go about it. Can I do it all in one pattern, or should I replace the '"'s first, then do the other replace?