{"action":"opened","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/1687","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/1687/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1687/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/1687/events","html_url":"https://github.com/mochajs/mocha/issues/1687","id":73626914,"number":1687,"title":"html reporter link to specific test is broken on some special characters","user":{"login":"amir-arad","id":6019373,"avatar_url":"https://avatars.githubusercontent.com/u/6019373?v=3","gravatar_id":"","url":"https://api.github.com/users/amir-arad","html_url":"https://github.com/amir-arad","followers_url":"https://api.github.com/users/amir-arad/followers","following_url":"https://api.github.com/users/amir-arad/following{/other_user}","gists_url":"https://api.github.com/users/amir-arad/gists{/gist_id}","starred_url":"https://api.github.com/users/amir-arad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir-arad/subscriptions","organizations_url":"https://api.github.com/users/amir-arad/orgs","repos_url":"https://api.github.com/users/amir-arad/repos","events_url":"https://api.github.com/users/amir-arad/events{/privacy}","received_events_url":"https://api.github.com/users/amir-arad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-06T13:49:48Z","updated_at":"2015-05-06T13:49:48Z","closed_at":null,"body":"If the test title contains some special characters (for instance $ or () ) then its link in the HTML report does not work.\r\n\r\nIMO the fix should be escaping regex [here](https://github.com/mochajs/mocha/blob/908d8dbe15b5ef5f4a5658f6cc870bf563e80717/lib/reporters/html.js#L192) before calling encodeURIComponent(s)"}}