{"id":20410013,"url":"https://github.com/vdlp/oc-htmlpurifier-plugin","last_synced_at":"2025-04-12T15:53:20.126Z","repository":{"id":62543878,"uuid":"141431011","full_name":"vdlp/oc-htmlpurifier-plugin","owner":"vdlp","description":"Adds a standards compliant HTML filter to October CMS.","archived":false,"fork":false,"pushed_at":"2024-03-14T13:48:31.000Z","size":355,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-11T12:24:57.802Z","etag":null,"topics":["filter","htmlpurifier","october-cms","octobercms","php","standards-compliant"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdlp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-07-18T12:21:01.000Z","updated_at":"2023-11-30T10:10:40.000Z","dependencies_parsed_at":"2023-11-30T10:45:35.856Z","dependency_job_id":null,"html_url":"https://github.com/vdlp/oc-htmlpurifier-plugin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-htmlpurifier-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-htmlpurifier-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-htmlpurifier-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-htmlpurifier-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdlp","download_url":"https://codeload.github.com/vdlp/oc-htmlpurifier-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248592151,"owners_count":21130192,"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":["filter","htmlpurifier","october-cms","octobercms","php","standards-compliant"],"created_at":"2024-11-15T05:44:36.655Z","updated_at":"2025-04-12T15:53:20.105Z","avatar_url":"https://github.com/vdlp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vdlp.HtmlPurifier\n\nAn October CMS plugin which adds a standards compliant HTML filter to October CMS.\n\nHTML Purifier is an HTML filtering solution that uses a unique combination of robust whitelists and agressive parsing to ensure that not only are XSS attacks thwarted, but the resulting HTML is standards compliant.\n\n## Installation\n\n**CLI:**\n\n`php artisan plugin:install Vdlp.HtmlPurifier`\n\n**October CMS:**\n\nGo to Settings \u003e Updates \u0026 Plugins \u003e Install plugins and search for 'HtmlPurifier'. \n\n## Configuration\n\nTo configure the filter execute this command:\n\n````\nphp artisan vendor:publish --provider=\"Vdlp\\HtmlPurifier\\HtmlPurifierServiceProvider\" --tag=\"config\"\n````\n\nA configuration file named `config/htmlpurifier.php` is now created.\n\nIn depth information about configuration parameters can be found here: http://htmlpurifier.org/live/configdoc/plain.html\n\n## Usage\n\nUse the `|purify' in your Twig templates to apply the HTML Purifier filter.\n\n````\n{{ contentFromCms|purify }}\n\n{{ contentFromExternalSource|purify }}\n````\n\nor\n\n````\n{{ '\u003ca href=\"\" target=\"_blank\"\u003eSome random HTML string\u003c/a\u003e'|purify }}\n````\n\nFor more information about templating in October CMS: http://octobercms.com/docs/markup/templating\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-htmlpurifier-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdlp%2Foc-htmlpurifier-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-htmlpurifier-plugin/lists"}