{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/71a5d6f3c8f548363686c7c2fdfcef4a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"71a5d6f3c8f548363686c7c2fdfcef4a","url":"https://api.github.com/users/kevb","login":"kevb","id":11970},"labels":[],"assignee":null,"updated_at":"2011-11-17T14:12:45Z","closed_at":"2011-11-17T14:12:45Z","comments":2,"url":"https://api.github.com/repos/BorisMoore/jsrender/issues/20","body":"I had an issue where a carriage return character was finding its way into the parsed template and in Internet Explorer I'd get an error at line 545 complaining of an unterminated string which on inspection turned out to be a \" followed by an unescaped \\r.\r\n\r\nMy workaround was chnaging line 406 to the following:\r\n\r\ncontent.push( markup.substr( loc, shift ).replace( rNewLine,\"\\\\n\").replace(\"\\r\", \"\\\\n\"));\r\n\r\nUnfortunately I haven't had time to replicate this small-scale yet but I'm posting an issue in case it's something obvious that you can fix.","html_url":"https://github.com/BorisMoore/jsrender/issues/20","title":"Carriage return char not escaped in Internet Explorer","number":20,"id":2210890,"created_at":"2011-11-11T16:25:26Z"},"action":"closed"}