{"id":13657808,"url":"https://github.com/finn-no/xss-html-filter","last_synced_at":"2025-04-24T08:30:37.133Z","repository":{"id":1921605,"uuid":"2849601","full_name":"finn-no/xss-html-filter","owner":"finn-no","description":"Open Sourced HTML filtering utility for Java. Used to parse user-submitted input and sanitize it against potential cross site scripting attacks, malicious html, or simply badly formed html.","archived":true,"fork":false,"pushed_at":"2015-05-27T08:04:57.000Z","size":461,"stargazers_count":117,"open_issues_count":3,"forks_count":57,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-11-10T11:38:50.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://finn-no.github.com/xss-html-filter","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/finn-no.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-25T12:55:14.000Z","updated_at":"2024-08-23T02:38:27.000Z","dependencies_parsed_at":"2022-07-16T14:00:35.506Z","dependency_job_id":null,"html_url":"https://github.com/finn-no/xss-html-filter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finn-no%2Fxss-html-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finn-no%2Fxss-html-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finn-no%2Fxss-html-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finn-no%2Fxss-html-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/finn-no","download_url":"https://codeload.github.com/finn-no/xss-html-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250591875,"owners_count":21455449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T05:00:51.350Z","updated_at":"2025-04-24T08:30:36.840Z","avatar_url":"https://github.com/finn-no.png","language":"Java","funding_links":[],"categories":["Java (78)"],"sub_categories":[],"readme":"Open Sourced HTML filtering utility for Java\n\n    Front page: http://finn-no.github.com/xss-html-filter\n\nThis utility is a single class, HTMLFilter, which can be used to parse user-submitted input and sanitize it against potential cross site scripting attacks, malicious html, or simply badly formed html. This version, written in Java, is largely a translation of\nlib_filter ( http://code.iamcal.com/php/lib_filter/ ), the original work of Cal Henderson ( http://www.iamcal.com/ ) written in PHP.\n\n\nProcessing HTML Input\n\nSample usage:\n\n    // retrieve input from user...\n    String input = ...\n    String clean = new HTMLInputFilter().filter( input );\n\nThere's also an example using constretto: https://github.com/finn-no/xss-html-filter/wiki/Using-Constretto\n\n\nBuilding with maven\n\nTo include xss-html-filter into a maven built project add the following to your pom.xml (in the corresponding sections)\n\n \u003cdependency\u003e\n   \u003cgroupId\u003enet.sf.xss-html-filter\u003c/groupId\u003e\n   \u003cartifactId\u003exss-html-filter\u003c/artifactId\u003e\n   \u003cversion\u003e1.5\u003c/version\u003e \u003c!-- remember to check for newer versions --\u003e\n \u003c/dependency\u003e\n\n \u003crepository\u003e\n   \u003cid\u003exss-html-filter releases\u003c/id\u003e\n   \u003cname\u003exss-html-filter Releases Repository\u003c/name\u003e\n   \u003curl\u003ehttp://xss-html-filter.sf.net/releases/\u003c/url\u003e\n \u003c/repository\u003e\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinn-no%2Fxss-html-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinn-no%2Fxss-html-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinn-no%2Fxss-html-filter/lists"}