{"action":"created","issue":{"url":"https://api.github.com/repos/Antaris/RazorEngine/issues/355","repository_url":"https://api.github.com/repos/Antaris/RazorEngine","labels_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/355/comments","events_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/355/events","html_url":"https://github.com/Antaris/RazorEngine/issues/355","id":128989136,"number":355,"title":"MvcHtmlString getting encoded","user":{"login":"billrob","id":49503,"avatar_url":"https://avatars.githubusercontent.com/u/49503?v=3","gravatar_id":"","url":"https://api.github.com/users/billrob","html_url":"https://github.com/billrob","followers_url":"https://api.github.com/users/billrob/followers","following_url":"https://api.github.com/users/billrob/following{/other_user}","gists_url":"https://api.github.com/users/billrob/gists{/gist_id}","starred_url":"https://api.github.com/users/billrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billrob/subscriptions","organizations_url":"https://api.github.com/users/billrob/orgs","repos_url":"https://api.github.com/users/billrob/repos","events_url":"https://api.github.com/users/billrob/events{/privacy}","received_events_url":"https://api.github.com/users/billrob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-01-27T00:43:40Z","updated_at":"2016-10-28T18:23:37Z","closed_at":"2016-10-28T18:23:37Z","body":"When using MvcHtmlString in mvc razor views, the contents are not encoded.\r\nWhen using the RazorEngine it is not treating the content as already been encoded.\r\n\r\nThe part to change is on line 425 on TemplateBase.cs.\r\n\r\nCurrent:\r\n   if (value is IEncodedString)\r\nProposed\r\n   if(value is IEncodedString || value is IHtmlString)\r\n\r\nI will generate a pull request if this is moving in the correct direction.\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/Antaris/RazorEngine/issues/comments/256992745","html_url":"https://github.com/Antaris/RazorEngine/issues/355#issuecomment-256992745","issue_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/355","id":256992745,"user":{"login":"matthid","id":1866463,"avatar_url":"https://avatars.githubusercontent.com/u/1866463?v=3","gravatar_id":"","url":"https://api.github.com/users/matthid","html_url":"https://github.com/matthid","followers_url":"https://api.github.com/users/matthid/followers","following_url":"https://api.github.com/users/matthid/following{/other_user}","gists_url":"https://api.github.com/users/matthid/gists{/gist_id}","starred_url":"https://api.github.com/users/matthid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthid/subscriptions","organizations_url":"https://api.github.com/users/matthid/orgs","repos_url":"https://api.github.com/users/matthid/repos","events_url":"https://api.github.com/users/matthid/events{/privacy}","received_events_url":"https://api.github.com/users/matthid/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T18:23:36Z","updated_at":"2016-10-28T18:23:36Z","body":"I think we don't have a reference to `IHtmlString` in RazorEngine as we don't reference MVC (only the Razor Engine). I think you can solve this by using your own subclass from TemplateBase. \r\n\r\nClosing as this quite old."}}
{"actor":{"display_login":"matthid"}}