{"id":13619652,"url":"https://github.com/Ruzzie/Textorizer","last_synced_at":"2025-04-14T16:32:13.899Z","repository":{"id":139855508,"uuid":"302880219","full_name":"Ruzzie/Textorizer","owner":"Ruzzie","description":"Sanitize and 'clean' html for safe consumption in a plain text format.","archived":false,"fork":false,"pushed_at":"2025-01-04T06:14:28.000Z","size":134,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T10:19:44.676Z","etag":null,"topics":["html","plain-text","sanitize","sanitize-html","text"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Ruzzie.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}},"created_at":"2020-10-10T10:52:22.000Z","updated_at":"2025-01-04T06:14:32.000Z","dependencies_parsed_at":"2024-03-08T07:44:11.425Z","dependency_job_id":"d105ff9e-9ffe-4882-8af4-8a2772deda4d","html_url":"https://github.com/Ruzzie/Textorizer","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/Ruzzie%2FTextorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruzzie%2FTextorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruzzie%2FTextorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruzzie%2FTextorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ruzzie","download_url":"https://codeload.github.com/Ruzzie/Textorizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248916754,"owners_count":21182862,"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":["html","plain-text","sanitize","sanitize-html","text"],"created_at":"2024-08-01T21:00:46.438Z","updated_at":"2025-04-14T16:32:08.883Z","avatar_url":"https://github.com/Ruzzie.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"# Textorizer\n[![Build status](https://ci.appveyor.com/api/projects/status/rsvw865mti05iulv?svg=true)](https://ci.appveyor.com/project/Ruzzie/textorizer)\n[![Nuget](https://img.shields.io/nuget/v/Textorizer)](https://www.nuget.org/packages/Textorizer)\n\nSanitize and 'clean' html for safe consumption in a plain text format.\n\n```csharp\n  var plainText = Textorize.HtmlToPlainText(\"\u003cspan\u003eI contain html\u003c/span\u003e\u003cp\u003econvert me\u003c/p\u003e\");\n  //  plaintext = \"I contain html\\nconvert me\\n\"  \n```\nConverts html input to a safe plain text representation without html. \nContent in Style and Script tags are completely removed, html entity characters are explicitly converted to their unicode characters.\nInvalid html is handled best effort for a reasonable equivalent plain text output.\n\nKeep in mind the following equivalence:\n        \n    Textorize(input) == Textorize(HtmlEncode(Textorize(input)))\n\nFor more examples see the [testsuite](https://github.com/Ruzzie/Textorizer/blob/ae0577ed07f930759a1796bb877cd31884fe6709/source/Textorizer.UnitTests/HtmlTextorizerTests.cs#L12) \n\n## Install\n\n### Package Manager Console\n\n```\nPM\u003e Install-Package Textorizer\n```\n\n### .NET CLI Console\n\n```\n\u003e dotnet add package Textorizer\n```\n\n## License\n\nDual licensed\n\nMIT\n\nhttps://opensource.org/licenses/MIT\n\nUnlicense\n\nhttps://opensource.org/licenses/Unlicense\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRuzzie%2FTextorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRuzzie%2FTextorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRuzzie%2FTextorizer/lists"}