silverstripe/sapphire — pull request #1213 by hafriedlander (2013-02-19 22:03:23+00:00)
Title: FIX issues with new shortcode parser

Fixes several issues with new shortcode parser

- Properly parses

and elements
- More resilient to bad HTML (bad HTML is just passed through & won't have shortcodes replaced)
- Make sure in PHP < 5.3.6 we don't try and pass arguments to DOMDocument#saveHTML