{"id":22980962,"url":"https://github.com/rubyworks/htmlfilter","last_synced_at":"2025-08-13T17:33:30.956Z","repository":{"id":658842,"uuid":"301665","full_name":"rubyworks/htmlfilter","owner":"rubyworks","description":"Clean HTML/CSS","archived":false,"fork":false,"pushed_at":"2012-12-14T02:58:46.000Z","size":759,"stargazers_count":9,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-10T23:37:42.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubyworks.github.com/htmlfilter","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubyworks.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","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":"2009-09-09T02:38:17.000Z","updated_at":"2023-05-25T01:04:34.000Z","dependencies_parsed_at":"2022-07-05T06:32:22.217Z","dependency_job_id":null,"html_url":"https://github.com/rubyworks/htmlfilter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rubyworks/htmlfilter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fhtmlfilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fhtmlfilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fhtmlfilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fhtmlfilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/htmlfilter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fhtmlfilter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269969485,"owners_count":24505430,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-15T01:46:18.197Z","updated_at":"2025-08-13T17:33:30.628Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTMLFilter\n\n[Website](http://rubyworks.github.com/htmlfilter) /\n[Source Code](http://github.com/rubyworks/htmlfilter)\n\n\n## Description\n\nHTML Filter library can be used to sanitize and sterilize\nHTML. A good idea if you let users submit HTML in comments,\nfor instance. \n\nThis library also include CSSFilter. The CSSFilter class will\nclean-up a cascading style sheet. It can be used to remove\nwhitespace and most importantly remove URLs.\n\n\n## Features\n\n* Based on well-worn PHP library.\n* Regular expression based filtering.\n* Very efficient for small snippets, like blog comments.\n* Pure-Ruby and no dependencies.\n* Also has library to clean and compact cascading stylesheets.\n\n\n## Synopsis\n\nVia the class.\n\n    html = \"\u003cb\u003ehello\u003c/b\u003e\"\n\n    HTMLFilter.new(options).filter(html)\n\nOr using the String extension.\n\n    html.html_filter(options)  #=\u003e \"\u003cb\u003ehello\u003c/b\u003e\"\n\nSee API documentation for more information.\n\n\n## Installation\n\nOf course, RubyGems is the answer:\n\n    $ gem install htmlfilter\n\n\n## Development\n\nHTMLFilter is hosted on [GitHub](http://github.com/rubyworks/htmlfilter).\n\nHTMLFilter is a [Rubyworks](http://rubyworks.github.com) project.\n\n\n## Acknowledgements\n\nThanks to Jang Kim for adding support for single quoted attributes.\n\nHtmlFilter is a port of lib_filter.php, v1.15 by Cal Henderson \u003ccal@iamcal.com\u003e.\nThis code is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.\nSee http://creativecommons.org/licenses/by-sa/2.5/.\n\n\n## Copyrights\n\n* Copyright (c) 2009 Rubyworks (BSD-2-Clause)\n* Copyright (c) 2007 Cal Henderson (CC-BY-SA)\n\nSee LICENSE.txt and NOTICE.md for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fhtmlfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Fhtmlfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fhtmlfilter/lists"}