{"action":"created","issue":{"url":"https://api.github.com/repos/ivantcholakov/codeigniter-phpmailer/issues/8","labels_url":"https://api.github.com/repos/ivantcholakov/codeigniter-phpmailer/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ivantcholakov/codeigniter-phpmailer/issues/8/comments","events_url":"https://api.github.com/repos/ivantcholakov/codeigniter-phpmailer/issues/8/events","html_url":"https://github.com/ivantcholakov/codeigniter-phpmailer/issues/8","id":98198527,"number":8,"title":"{unwrap} left in email","user":{"login":"milkboyuk","id":12049811,"avatar_url":"https://avatars.githubusercontent.com/u/12049811?v=3","gravatar_id":"","url":"https://api.github.com/users/milkboyuk","html_url":"https://github.com/milkboyuk","followers_url":"https://api.github.com/users/milkboyuk/followers","following_url":"https://api.github.com/users/milkboyuk/following{/other_user}","gists_url":"https://api.github.com/users/milkboyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/milkboyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milkboyuk/subscriptions","organizations_url":"https://api.github.com/users/milkboyuk/orgs","repos_url":"https://api.github.com/users/milkboyuk/repos","events_url":"https://api.github.com/users/milkboyuk/events{/privacy}","received_events_url":"https://api.github.com/users/milkboyuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-30T15:34:19Z","updated_at":"2015-08-01T11:41:32Z","closed_at":null,"body":"Had the codeigniter {unwrap} & {/unwrap} tags in my emails. They did not get removed. I could not find any phpmailer equivalent. The easiest solution (apart from not using them, which was not an option for me) was to just remove them by amending line 305 from: \r\n           $this->phpmailer->Subject = (string) $subject;\r\nto:\r\n           $this->phpmailer->Subject = str_replace(array('{unwrap}', '{/unwrap}'), '', (string) $subject); \r\n\r\nAnd line 321 from:\r\n            $this->phpmailer->Body = $body;\r\nto:\r\n            $this->phpmailer->Body = str_replace(array('{unwrap}', '{/unwrap}'), '', $body);\r\n\r\nThis is for CI 2. Not sure how it applies to to CI 3.\r\n"},"comment":{"url":"https://api.github.com/repos/ivantcholakov/codeigniter-phpmailer/issues/comments/126904929","html_url":"https://github.com/ivantcholakov/codeigniter-phpmailer/issues/8#issuecomment-126904929","issue_url":"https://api.github.com/repos/ivantcholakov/codeigniter-phpmailer/issues/8","id":126904929,"user":{"login":"ivantcholakov","id":1438104,"avatar_url":"https://avatars.githubusercontent.com/u/1438104?v=3","gravatar_id":"","url":"https://api.github.com/users/ivantcholakov","html_url":"https://github.com/ivantcholakov","followers_url":"https://api.github.com/users/ivantcholakov/followers","following_url":"https://api.github.com/users/ivantcholakov/following{/other_user}","gists_url":"https://api.github.com/users/ivantcholakov/gists{/gist_id}","starred_url":"https://api.github.com/users/ivantcholakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivantcholakov/subscriptions","organizations_url":"https://api.github.com/users/ivantcholakov/orgs","repos_url":"https://api.github.com/users/ivantcholakov/repos","events_url":"https://api.github.com/users/ivantcholakov/events{/privacy}","received_events_url":"https://api.github.com/users/ivantcholakov/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T11:41:32Z","updated_at":"2015-08-01T11:41:32Z","body":"@milkboyuk Why do you need to clean the subject?"}}