{"action":"created","issue":{"url":"https://api.github.com/repos/yargalot/email-builder-example/issues/2","labels_url":"https://api.github.com/repos/yargalot/email-builder-example/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/yargalot/email-builder-example/issues/2/comments","events_url":"https://api.github.com/repos/yargalot/email-builder-example/issues/2/events","html_url":"https://github.com/yargalot/email-builder-example/issues/2","id":58021954,"number":2,"title":"encodeSpecialChars not working","user":{"login":"levi-putna","id":582019,"avatar_url":"https://avatars.githubusercontent.com/u/582019?v=3","gravatar_id":"","url":"https://api.github.com/users/levi-putna","html_url":"https://github.com/levi-putna","followers_url":"https://api.github.com/users/levi-putna/followers","following_url":"https://api.github.com/users/levi-putna/following{/other_user}","gists_url":"https://api.github.com/users/levi-putna/gists{/gist_id}","starred_url":"https://api.github.com/users/levi-putna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levi-putna/subscriptions","organizations_url":"https://api.github.com/users/levi-putna/orgs","repos_url":"https://api.github.com/users/levi-putna/repos","events_url":"https://api.github.com/users/levi-putna/events{/privacy}","received_events_url":"https://api.github.com/users/levi-putna/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-18T03:44:59Z","updated_at":"2015-02-18T03:46:37Z","closed_at":"2015-02-18T03:46:37Z","body":"My mail template uses php to render dynamic content before sending. The PHP tags are getting turned into special characters.\r\n\r\nThe following HTML + PHP\r\n`<p>Hi <?= $member->getDisplayName(); ?>,</p>`\r\n\r\nWill be output as\r\n` <p style=\"...\">Hi getDisplayName(); ?&gt;,</p>`\r\n\r\nAccording to the documentation adding the encodeSpecialChars: false option should prevent the tags being rendered as special characters. This doesn't seem to work, characters are still getting encoded.\r\n\r\nAttached is the Grunt configuration used.\r\n\r\n    emailBuilder: {\r\n        production: {\r\n            files: [{\r\n                options  : {\r\n                    encodeSpecialChars: false\r\n                },\r\n                expand: true, // Enable dynamic expansion.\r\n                cwd      : 'protected/email_template',\r\n                src      : ['*.php'], \r\n                dest     : 'protected/views/email/', \r\n                ext      : '.php' \r\n            }]\r\n        }\r\n    },"},"comment":{"url":"https://api.github.com/repos/yargalot/email-builder-example/issues/comments/74806742","html_url":"https://github.com/yargalot/email-builder-example/issues/2#issuecomment-74806742","issue_url":"https://api.github.com/repos/yargalot/email-builder-example/issues/2","id":74806742,"user":{"login":"levi-putna","id":582019,"avatar_url":"https://avatars.githubusercontent.com/u/582019?v=3","gravatar_id":"","url":"https://api.github.com/users/levi-putna","html_url":"https://github.com/levi-putna","followers_url":"https://api.github.com/users/levi-putna/followers","following_url":"https://api.github.com/users/levi-putna/following{/other_user}","gists_url":"https://api.github.com/users/levi-putna/gists{/gist_id}","starred_url":"https://api.github.com/users/levi-putna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levi-putna/subscriptions","organizations_url":"https://api.github.com/users/levi-putna/orgs","repos_url":"https://api.github.com/users/levi-putna/repos","events_url":"https://api.github.com/users/levi-putna/events{/privacy}","received_events_url":"https://api.github.com/users/levi-putna/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T03:46:37Z","updated_at":"2015-02-18T03:46:37Z","body":"Sorry, this should be in the main project, not the example project."}}