{"action":"created","issue":{"url":"https://api.github.com/repos/korpling/ANNIS/issues/405","labels_url":"https://api.github.com/repos/korpling/ANNIS/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/korpling/ANNIS/issues/405/comments","events_url":"https://api.github.com/repos/korpling/ANNIS/issues/405/events","html_url":"https://github.com/korpling/ANNIS/issues/405","id":73355677,"number":405,"title":"HTML visualization -- escaping special chars","user":{"login":"dlukes","id":2734517,"avatar_url":"https://avatars.githubusercontent.com/u/2734517?v=3","gravatar_id":"","url":"https://api.github.com/users/dlukes","html_url":"https://github.com/dlukes","followers_url":"https://api.github.com/users/dlukes/followers","following_url":"https://api.github.com/users/dlukes/following{/other_user}","gists_url":"https://api.github.com/users/dlukes/gists{/gist_id}","starred_url":"https://api.github.com/users/dlukes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlukes/subscriptions","organizations_url":"https://api.github.com/users/dlukes/orgs","repos_url":"https://api.github.com/users/dlukes/repos","events_url":"https://api.github.com/users/dlukes/events{/privacy}","received_events_url":"https://api.github.com/users/dlukes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/korpling/ANNIS/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-05T16:04:49Z","updated_at":"2015-05-13T14:09:56Z","closed_at":"2015-05-06T08:29:39Z","body":"Is there a way to force the HTML visualizer to escape special characters (angle brackets, ampersands etc.) inside annotations? As things stand, if an annotation consists e.g. of the string `<SM ha ha ha>`, it is outputted verbatim and therefore interpreted as an HTML tag by the browser.\r\n\r\nThere's a `switch` statement in `annis.visualizers.htmlvis.SpanHTMLOutputter`, in the method `outputHTML`, which should escape the value of the matched annotation when `type` is `ESCAPED_VALUE`, but I can't figure out what affects this attribute or how to set it to `ESCAPED_VALUE` (apologies, I read Java like a five-year-old at best)."},"comment":{"url":"https://api.github.com/repos/korpling/ANNIS/issues/comments/101676184","html_url":"https://github.com/korpling/ANNIS/issues/405#issuecomment-101676184","issue_url":"https://api.github.com/repos/korpling/ANNIS/issues/405","id":101676184,"user":{"login":"amir-zeldes","id":2188635,"avatar_url":"https://avatars.githubusercontent.com/u/2188635?v=3","gravatar_id":"","url":"https://api.github.com/users/amir-zeldes","html_url":"https://github.com/amir-zeldes","followers_url":"https://api.github.com/users/amir-zeldes/followers","following_url":"https://api.github.com/users/amir-zeldes/following{/other_user}","gists_url":"https://api.github.com/users/amir-zeldes/gists{/gist_id}","starred_url":"https://api.github.com/users/amir-zeldes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir-zeldes/subscriptions","organizations_url":"https://api.github.com/users/amir-zeldes/orgs","repos_url":"https://api.github.com/users/amir-zeldes/repos","events_url":"https://api.github.com/users/amir-zeldes/events{/privacy}","received_events_url":"https://api.github.com/users/amir-zeldes/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T14:09:56Z","updated_at":"2015-05-13T14:09:56Z","body":"OK, the guide has been updated!"}}