title: Regex extra spaces in string not in double or single quotes - PHP
body: <p>I would like to replace extra spaces (instances of consecutive whitespace characters) with one space, as long as those extra spaces are not in double or single quotes (or any other enclosures I may want to include).</p>
  
  <p>I saw some similar questions, but I could not find a direct response to my needs above. Thank you!</p>