{"action":"opened","issue":{"url":"https://api.github.com/repos/rgrove/sanitize/issues/137","labels_url":"https://api.github.com/repos/rgrove/sanitize/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/rgrove/sanitize/issues/137/comments","events_url":"https://api.github.com/repos/rgrove/sanitize/issues/137/events","html_url":"https://github.com/rgrove/sanitize/issues/137","id":108538415,"number":137,"title":"nokogumbo sometimes do it’s own escaping leading contents being escaped twice with escapeutils.","user":{"login":"ytrezq","id":3824869,"avatar_url":"https://avatars.githubusercontent.com/u/3824869?v=3","gravatar_id":"","url":"https://api.github.com/users/ytrezq","html_url":"https://github.com/ytrezq","followers_url":"https://api.github.com/users/ytrezq/followers","following_url":"https://api.github.com/users/ytrezq/following{/other_user}","gists_url":"https://api.github.com/users/ytrezq/gists{/gist_id}","starred_url":"https://api.github.com/users/ytrezq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytrezq/subscriptions","organizations_url":"https://api.github.com/users/ytrezq/orgs","repos_url":"https://api.github.com/users/ytrezq/repos","events_url":"https://api.github.com/users/ytrezq/events{/privacy}","received_events_url":"https://api.github.com/users/ytrezq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-27T14:10:30Z","updated_at":"2015-09-27T14:10:30Z","closed_at":null,"body":"With some elements, nokogumbo is doing it’s own ʜᴛᴍʟ escaping. If the elements aren’t whitelisted, then escapeutils does a second pass leading elements being escaped twice.\r\nSo that :\r\n\r\n    <xmp>\\<a href=\"https://www.google.fr\">test</a></xmp>\r\nrenders :\r\n<xmp>\\<a href=\"https://www.google.fr\">test</a></xmp>\r\n\r\nfinnally there is the \\<plaintext> tag \r\n\r\n    <plaintext></plaintext>\r\n<plaintext></plaintext> which while \\<plaintext> being  stripped makes the whole page after it being escaped.\r\nIt even escape the final tag of the paragraph. It also can’t be closed."}}