Remove 'html_entity_decode' around snippet output, as it will cause the page display to break under certain circumstances.