Escape classes in DOMDocument shortcodes