Change shortcode regex to remove endline after </html> tag

The errant endline character was appearing after the `</html>` tag, this wasn't being picked up by (.*?). Normally this wouldn't be a problem except for things like $BaseURL.