{"action":"created","issue":{"url":"https://api.github.com/repos/dblock/actionmailer-text/issues/2","labels_url":"https://api.github.com/repos/dblock/actionmailer-text/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dblock/actionmailer-text/issues/2/comments","events_url":"https://api.github.com/repos/dblock/actionmailer-text/issues/2/events","html_url":"https://github.com/dblock/actionmailer-text/issues/2","id":80690622,"number":2,"title":"Does not exclude <head>","user":{"login":"deneuxa","id":359847,"avatar_url":"https://avatars.githubusercontent.com/u/359847?v=3","gravatar_id":"","url":"https://api.github.com/users/deneuxa","html_url":"https://github.com/deneuxa","followers_url":"https://api.github.com/users/deneuxa/followers","following_url":"https://api.github.com/users/deneuxa/following{/other_user}","gists_url":"https://api.github.com/users/deneuxa/gists{/gist_id}","starred_url":"https://api.github.com/users/deneuxa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deneuxa/subscriptions","organizations_url":"https://api.github.com/users/deneuxa/orgs","repos_url":"https://api.github.com/users/deneuxa/repos","events_url":"https://api.github.com/users/deneuxa/events{/privacy}","received_events_url":"https://api.github.com/users/deneuxa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-25T22:32:09Z","updated_at":"2015-05-26T17:50:55Z","closed_at":"2015-05-26T17:50:55Z","body":"I'm using http://internations.github.io/antwort/ templates,\r\nso I have an <head> in my html layout like this : \r\n\r\n      <head>\r\n          <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n          <meta name=\"viewport\" content=\"initial-scale=1.0\">    <!-- So that mobile webkit will display zoomed in -->\r\n          <meta name=\"format-detection\" content=\"telephone=no\"> <!-- disable auto telephone linking in iOS -->\r\n      \r\n          <title>MY TITLE</title>\r\n          <style type=\"text/css\">\r\n              .ReadMsgBody { width: 100%; background-color: #ffffff;}\r\n              .ExternalClass {width: 100%; background-color: #ffffff;}\r\n              .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height:100%;}\r\n              body {-webkit-text-size-adjust:none; -ms-text-size-adjust:none;}\r\n              body {margin:0; padding:0;}\r\n              table {border-spacing:0;}\r\n              table td {border-collapse:collapse;}\r\n              .yshortcuts a {border-bottom: none !important;}\r\n              .circular-avatar{border-radius: 140px;}\r\n              a[class=\"only_mobile_link\"] {\r\n                  display: none;\r\n              }\r\n              /* Constrain email width for small screens */\r\n              @media screen and (max-width: 600px) {\r\n                  table[class=\"container\"] {\r\n                      width: 95% !important;\r\n                  }\r\n                  td[class=\"removable-col\"] {\r\n                      display: none !important;\r\n                  }\r\n                  a[class=\"only_mobile_link\"] {\r\n                      display: inline !important;\r\n                  }\r\n                  td[class=\"force-col\"] {\r\n                      display: block;\r\n                      padding-right: 0 !important;\r\n                  }\r\n              }\r\n      \r\n      \r\n      \r\n          </style>\r\n      </head>\r\n\r\n\r\nSo neither the <title>, neither the CSS code are escaped and appear in my plain-text emails.\r\n\r\nThe gem could : \r\n- or escape the <head> part\r\n- or use the default plain text template if existing and include the generated text inside it, what do you think ?"},"comment":{"url":"https://api.github.com/repos/dblock/actionmailer-text/issues/comments/105617130","html_url":"https://github.com/dblock/actionmailer-text/issues/2#issuecomment-105617130","issue_url":"https://api.github.com/repos/dblock/actionmailer-text/issues/2","id":105617130,"user":{"login":"woahdae","id":25282,"avatar_url":"https://avatars.githubusercontent.com/u/25282?v=3","gravatar_id":"","url":"https://api.github.com/users/woahdae","html_url":"https://github.com/woahdae","followers_url":"https://api.github.com/users/woahdae/followers","following_url":"https://api.github.com/users/woahdae/following{/other_user}","gists_url":"https://api.github.com/users/woahdae/gists{/gist_id}","starred_url":"https://api.github.com/users/woahdae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woahdae/subscriptions","organizations_url":"https://api.github.com/users/woahdae/orgs","repos_url":"https://api.github.com/users/woahdae/repos","events_url":"https://api.github.com/users/woahdae/events{/privacy}","received_events_url":"https://api.github.com/users/woahdae/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T17:50:55Z","updated_at":"2015-05-26T17:50:55Z","body":"Should be fixed via new release. Let me know if there are still issues."}}