{"id":15432967,"url":"https://github.com/simonw/datasette-simple-html","last_synced_at":"2025-03-28T06:11:19.943Z","repository":{"id":93313143,"uuid":"607956629","full_name":"simonw/datasette-simple-html","owner":"simonw","description":"Datasette SQL functions for very simple HTML operations","archived":false,"fork":false,"pushed_at":"2023-03-12T17:30:47.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-18T07:53:36.964Z","etag":null,"topics":["datasette-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-01T02:29:26.000Z","updated_at":"2023-03-01T02:36:47.000Z","dependencies_parsed_at":"2023-04-25T15:31:00.379Z","dependency_job_id":null,"html_url":"https://github.com/simonw/datasette-simple-html","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"7ae1e2d693ea69d88ae11acf26ed81bd0026121c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fdatasette-simple-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fdatasette-simple-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fdatasette-simple-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fdatasette-simple-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonw","download_url":"https://codeload.github.com/simonw/datasette-simple-html/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978277,"owners_count":20703678,"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":["datasette-plugin"],"created_at":"2024-10-01T18:29:49.907Z","updated_at":"2025-03-28T06:11:19.919Z","avatar_url":"https://github.com/simonw.png","language":"Python","readme":"# datasette-simple-html\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-simple-html.svg)](https://pypi.org/project/datasette-simple-html/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-simple-html?include_prereleases\u0026label=changelog)](https://github.com/simonw/datasette-simple-html/releases)\n[![Tests](https://github.com/simonw/datasette-simple-html/workflows/Test/badge.svg)](https://github.com/simonw/datasette-simple-html/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-simple-html/blob/main/LICENSE)\n\nDatasette SQL functions for very simple HTML operations\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n    datasette install datasette-simple-html\n\n## Usage\n\nThis plugin provides the following SQL functions:\n\n### html_strip_tags(text)\n\nReturns the text with any `\u003c...\u003e` tags removed.\n\n### html_escape(text)\n\nEscapes any HTML special characters in the text, e.g. `\u003e` becomes `\u0026gt;`. Uses [html.escape(text, quote=True)](https://docs.python.org/3/library/html.html#html.escape) from the Python standard library.\n\n### html_unescape(text)\n\nUnescapes any HTML special characters, so `\u0026gt;` becomes `\u003e`. Also handles numeric entities, so `\u0026#x27;` becomes `'`. Uses [html.unescape(text)](https://docs.python.org/3/library/html.html#html.unescape) from the Python standard library.\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n    cd datasette-simple-html\n    python3 -m venv venv\n    source venv/bin/activate\n\nNow install the dependencies and test dependencies:\n\n    pip install -e '.[test]'\n\nTo run the tests:\n\n    pytest\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fdatasette-simple-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonw%2Fdatasette-simple-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fdatasette-simple-html/lists"}