{"action":"created","issue":{"url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/975","repository_url":"https://api.github.com/repos/salesagility/SuiteCRM","labels_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/975/labels{/name}","comments_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/975/comments","events_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/975/events","html_url":"https://github.com/salesagility/SuiteCRM/issues/975","id":134250888,"number":975,"title":"Cases created automatically from E-mails showing HTML in fresh install of 7.5.1","user":{"login":"meethoss","id":15215178,"avatar_url":"https://avatars.githubusercontent.com/u/15215178?v=3","gravatar_id":"","url":"https://api.github.com/users/meethoss","html_url":"https://github.com/meethoss","followers_url":"https://api.github.com/users/meethoss/followers","following_url":"https://api.github.com/users/meethoss/following{/other_user}","gists_url":"https://api.github.com/users/meethoss/gists{/gist_id}","starred_url":"https://api.github.com/users/meethoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meethoss/subscriptions","organizations_url":"https://api.github.com/users/meethoss/orgs","repos_url":"https://api.github.com/users/meethoss/repos","events_url":"https://api.github.com/users/meethoss/events{/privacy}","received_events_url":"https://api.github.com/users/meethoss/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/salesagility/SuiteCRM/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"daniel-samson","id":12231216,"avatar_url":"https://avatars.githubusercontent.com/u/12231216?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-samson","html_url":"https://github.com/daniel-samson","followers_url":"https://api.github.com/users/daniel-samson/followers","following_url":"https://api.github.com/users/daniel-samson/following{/other_user}","gists_url":"https://api.github.com/users/daniel-samson/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-samson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-samson/subscriptions","organizations_url":"https://api.github.com/users/daniel-samson/orgs","repos_url":"https://api.github.com/users/daniel-samson/repos","events_url":"https://api.github.com/users/daniel-samson/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-samson/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-02-17T11:06:33Z","updated_at":"2016-04-06T12:19:21Z","closed_at":null,"body":"As you can see from the below screenshots when a case is automatically created from an E-mail it is displaying HTML. That same E-mail, however, when used to manually create a case shows up fine. I've looked around for similar issues which I have attempted to resolve in the same way but could not get it working properly; either way this needs a permanent fix as this is a fresh install.\r\n\r\nA little extra info if it helps - I used Gmail as the mailbox and the test E-mail was sent from Outlook 2013.\r\n\r\n![capture1](https://cloud.githubusercontent.com/assets/15215178/13107608/6c7b36aa-d566-11e5-80f9-8a763ffcc285.PNG)\r\n\r\n![capture2](https://cloud.githubusercontent.com/assets/15215178/13107616/6f2e4ff4-d566-11e5-929a-aced8dfddb5e.PNG)\r\n"},"comment":{"url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/comments/206345184","html_url":"https://github.com/salesagility/SuiteCRM/issues/975#issuecomment-206345184","issue_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/975","id":206345184,"user":{"login":"abeo","id":1320436,"avatar_url":"https://avatars.githubusercontent.com/u/1320436?v=3","gravatar_id":"","url":"https://api.github.com/users/abeo","html_url":"https://github.com/abeo","followers_url":"https://api.github.com/users/abeo/followers","following_url":"https://api.github.com/users/abeo/following{/other_user}","gists_url":"https://api.github.com/users/abeo/gists{/gist_id}","starred_url":"https://api.github.com/users/abeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeo/subscriptions","organizations_url":"https://api.github.com/users/abeo/orgs","repos_url":"https://api.github.com/users/abeo/repos","events_url":"https://api.github.com/users/abeo/events{/privacy}","received_events_url":"https://api.github.com/users/abeo/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T12:19:21Z","updated_at":"2016-04-06T12:19:21Z","body":"Running 7.5.3 and still have this issue. \r\n\r\nUsing opensourcecrm's suggestion I edited custom/modules/Cases/metadata/detailviewdefs.php\r\nto look like this,\r\narray (\r\n      0 => array (\r\n        'description',\r\n        'customCode' => '{$fields.description.value|escape:\\'html_entity_decode\\'}',\r\n      ),\r\nand this,\r\n array (\r\n          0 => 'description',\r\n\t\t  'customCode' => '{$fields.description.value|escape:\\'htmlentitydecode\\' |escape:\\'html\\'|strip_tags|url2html|nl2br}',\r\n        ),\r\n\r\nNot joy, HTML still displays either way."}}