{"id":16647138,"url":"https://github.com/michaelrsweet/htmlcss","last_synced_at":"2025-03-21T16:30:56.194Z","repository":{"id":47799036,"uuid":"126762629","full_name":"michaelrsweet/htmlcss","owner":"michaelrsweet","description":"A lightweight HTML and CSS Parser in C","archived":false,"fork":false,"pushed_at":"2022-05-27T12:24:55.000Z","size":6459,"stargazers_count":64,"open_issues_count":7,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T03:01:55.504Z","etag":null,"topics":["c","css","html","otf","ttf"],"latest_commit_sha":null,"homepage":"https://www.msweet.org/htmlcss","language":"C","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/michaelrsweet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"michaelrsweet","liberapay":"michaelrsweet"}},"created_at":"2018-03-26T02:28:46.000Z","updated_at":"2025-03-15T00:35:12.000Z","dependencies_parsed_at":"2022-08-30T09:00:29.647Z","dependency_job_id":null,"html_url":"https://github.com/michaelrsweet/htmlcss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelrsweet%2Fhtmlcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelrsweet%2Fhtmlcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelrsweet%2Fhtmlcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelrsweet%2Fhtmlcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelrsweet","download_url":"https://codeload.github.com/michaelrsweet/htmlcss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244829406,"owners_count":20517301,"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":["c","css","html","otf","ttf"],"created_at":"2024-10-12T08:43:57.306Z","updated_at":"2025-03-21T16:30:55.874Z","avatar_url":"https://github.com/michaelrsweet.png","language":"C","funding_links":["https://github.com/sponsors/michaelrsweet","https://liberapay.com/michaelrsweet"],"categories":[],"sub_categories":[],"readme":"HTMLCSS - Lightweight HTML/CSS Library\n======================================\n\n![Version](https://img.shields.io/github/v/release/michaelrsweet/htmlcss?include_prereleases)\n![Apache 2.0](https://img.shields.io/github/license/michaelrsweet/htmlcss)\n[![Build](https://github.com/michaelrsweet/htmlcss/workflows/Build/badge.svg)](https://github.com/michaelrsweet/htmlcss/actions/workflows/build.yml)\n[![Coverity Scan Status](https://img.shields.io/coverity/scan/22390.svg)](https://scan.coverity.com/projects/michaelrsweet-htmlcss)\n[![LGTM Grade](https://img.shields.io/lgtm/grade/cpp/github/michaelrsweet/htmlcss)](https://lgtm.com/projects/g/michaelrsweet/htmlcss/context:cpp)\n[![LGTM Alerts](https://img.shields.io/lgtm/alerts/github/michaelrsweet/htmlcss)](https://lgtm.com/projects/g/michaelrsweet/htmlcss/)\n\nHTMLCSS is a lightweight HTML/CSS parser written in C that allows applications\nto prepare a HTML document for rendering or conversion.  HTMLCSS is extremely\nportable and only requires a C99 compiler like GCC, Clang, Visual C, etc.\nHTMLCSS is also extremely memory efficient, utilizing a shared string pool and\nsmart CSS cache to minimize the size of a HTML document in memory.\n\nI'm providing HTMLCSS as open source under the Apache License Version 2.0 with\nexceptions for use with GPL2/LGPL2 applications which allows you do pretty much\ndo whatever you like with it.  Please do provide feedback and report bugs to the\n[Github project page](https://github.com/michaelrsweet/htmlcss) so that everyone\ncan benefit.\n\n\nFeatures\n--------\n\nFeatures include:\n\n- HTML 5 markup parser\n- CSS 3 stylesheet parser\n- OFC/OFF/TTC/TTF font file parser (metadata and metrics only)\n- GIF/JPG/PNG image file parser (metadata only)\n- Functions to calculate CSS properties for a given node in a HTML document\n- Functions to extract HTML \"runs\" consisting of CSS properties, content\n  strings, and image references that can be rendered directly, including the\n  :before and :after content from a stylesheet\n\nHTMLCSS does *not* support dynamic HTML content created using Javascript in a\nHTML document, as such content is typically used for interactive web pages while\nHTMLCSS is intended for use with static content.\n\n\nRequirements\n------------\n\nYou'll need a C99 compiler like GCC, Clang, or Visual C, along with a POSIX-\ncompliant `make` program.\n\n\nBuilding\n--------\n\nRun `make` to build the library and unit test program.\n\n\nInstalling\n----------\n\nRun `make install` to install the library and header files under `/usr/local`.\nTo install in a different location, specify the \"prefix\" variable, e.g.:\n\n    make install prefix=/some/other/directory\n\n\nUsing\n-----\n\nSee the file [DOCUMENTATION.md]() for documentation on using the library.\n\n\nLegal Stuff\n-----------\n\nHTMLCSS is Copyright © 2018-2022 by Michael R Sweet.\n\nHTMLCSS is licensed under the Apache License Version 2.0 with an exception to\nallow linking against GPL2/LGPL2-only software.  See the files \"LICENSE\" and\n\"NOTICE\" for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelrsweet%2Fhtmlcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelrsweet%2Fhtmlcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelrsweet%2Fhtmlcss/lists"}