Add “, ENT_QUOTES, 'utf-8'” to the parameter list Changed: U trunk/Bundles/PHP.tmbundle/Snippets/<?php echo htmlentities(___) ?>.tmSnippet