{"id":37017120,"url":"https://github.com/x28/inscriptis-java","last_synced_at":"2026-01-14T01:57:37.316Z","repository":{"id":44534252,"uuid":"320196731","full_name":"x28/inscriptis-java","owner":"x28","description":"inscriptis - HTML to text conversion library for Java","archived":true,"fork":false,"pushed_at":"2022-08-04T14:00:13.000Z","size":114,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-19T09:47:17.531Z","etag":null,"topics":["converter","html2text","java","library"],"latest_commit_sha":null,"homepage":"","language":"Java","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/x28.png","metadata":{"files":{"readme":"README.md","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":"2020-12-10T07:42:24.000Z","updated_at":"2025-07-03T15:17:39.000Z","dependencies_parsed_at":"2022-09-11T15:12:13.730Z","dependency_job_id":null,"html_url":"https://github.com/x28/inscriptis-java","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/x28/inscriptis-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x28%2Finscriptis-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x28%2Finscriptis-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x28%2Finscriptis-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x28%2Finscriptis-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x28","download_url":"https://codeload.github.com/x28/inscriptis-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x28%2Finscriptis-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"ssl_error","status_checked_at":"2026-01-14T01:40:32.775Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["converter","html2text","java","library"],"created_at":"2026-01-14T01:57:36.793Z","updated_at":"2026-01-14T01:57:37.308Z","avatar_url":"https://github.com/x28.png","language":"Java","readme":"[![Maven Build](https://github.com/x28/inscriptis-java/actions/workflows/maven-build.yml/badge.svg)](https://github.com/x28/inscriptis-java/actions/workflows/maven-build.yml)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/ch.x28.inscriptis/inscriptis/badge.svg)](https://maven-badges.herokuapp.com/maven-central/ch.x28.inscriptis/inscriptis)\n[![javadoc](https://javadoc.io/badge2/ch.x28.inscriptis/inscriptis/javadoc.svg)](https://javadoc.io/doc/ch.x28.inscriptis/inscriptis)\n\n# inscriptis - HTML to text conversion library for Java\n\nA Java-based HTML to text conversion library with support for nested tables and a subset of CSS. Please take a look at the [Rendering document](https://github.com/weblyzard/inscriptis/blob/master/RENDERING.md) for a demonstration of Inscriptis conversion quality.\n\nThis is a Java port of [inscriptis for Python](https://github.com/weblyzard/inscriptis).\n\n## Getting Started\n\nHere is a quick teaser of an application using inscriptis for Java:\n\n```java\npackage example;\n\nimport org.jsoup.Jsoup;\nimport org.jsoup.helper.W3CDom;\nimport org.w3c.dom.Document;\n\nimport ch.x28.inscriptis.Inscriptis;\n\npublic class Example {\n\n\tpublic static void main(String[] args) {\n\n\t\tString htmlContent = \"\u003cp style=\\\"margin-top:0px\\\"\u003eHello World!\u003c/p\u003e\";\n\n\t\t// use jsoup to parse HTML and convert it to W3C Document (https://jsoup.org)\n\t\tDocument document = W3CDom.convert(Jsoup.parse(htmlContent));\n\n\t\tInscriptis inscriptis = new Inscriptis(document);\n\t\tString text = inscriptis.getText();\n\n\t\tSystem.out.println(text); // Hello World!\n\t}\n}\n```\n\n## Maven configuration\n\nAdd the Maven dependency:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ech.x28.inscriptis\u003c/groupId\u003e\n  \u003cartifactId\u003einscriptis\u003c/artifactId\u003e\n  \u003cversion\u003e1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## HTML parser\n\ninscriptis requires a W3C document, so it's up to you which parser you choose. Here is a list of parsers that support a W3C document result.\n\n### jsoup\nhttps://jsoup.org/\n\n### nu-validator HTML Parser\nhttps://mvnrepository.com/artifact/nu.validator/htmlparser\n\n## License\n\ninscriptis for Java is an Open Source software released under the Apache License, Version 2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx28%2Finscriptis-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx28%2Finscriptis-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx28%2Finscriptis-java/lists"}