{"id":15561238,"url":"https://github.com/sonsongithub/htmlspecialcharacters","last_synced_at":"2025-04-23T22:22:18.982Z","repository":{"id":56913949,"uuid":"81692878","full_name":"sonsongithub/HTMLSpecialCharacters","owner":"sonsongithub","description":"Library to escape/unescape HTML special characters in Swift.","archived":false,"fork":false,"pushed_at":"2021-02-20T08:58:05.000Z","size":98,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T23:46:09.707Z","etag":null,"topics":["html","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sonsongithub.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}},"created_at":"2017-02-12T00:37:29.000Z","updated_at":"2022-12-03T12:15:27.000Z","dependencies_parsed_at":"2022-08-21T03:20:38.651Z","dependency_job_id":null,"html_url":"https://github.com/sonsongithub/HTMLSpecialCharacters","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonsongithub%2FHTMLSpecialCharacters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonsongithub%2FHTMLSpecialCharacters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonsongithub%2FHTMLSpecialCharacters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonsongithub%2FHTMLSpecialCharacters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonsongithub","download_url":"https://codeload.github.com/sonsongithub/HTMLSpecialCharacters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242254173,"owners_count":20097531,"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","swift"],"created_at":"2024-10-02T16:06:42.643Z","updated_at":"2025-03-06T17:31:48.361Z","avatar_url":"https://github.com/sonsongithub.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTMLSpecialCharacters\n\nLibrary to escape/unescape HTML special characters in Swift.\n[Google Toolbox for Mac](https://github.com/google/google-toolbox-for-mac) is known as a great library which supports escaping/unescaping HTML special characters.\nBut it's written in Objective-C.\n\n# Test code\n\nHTMLSpecialCharacters passed the alomost same test code of [Google Toolbox for Mac](https://github.com/google/google-toolbox-for-mac/blob/master/Foundation/GTMNSString%2BHTMLTest.m).\nPlease check it.\n\n# Performance\n\nHTMLSpecialCharacters can escape/unescape HTML special chracters much faster than[ Google Toolbox for Mac](https://github.com/google/google-toolbox-for-mac).\nThe figure below shows the performance of escaping/unescaping the test code. These score were measured on iMac (27-inch Late 2012). \nTest code for Google Toolbox for Mac is [here](https://github.com/sonsongithub/GTMHTMLSpecialCharacters).\n\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/33768/22871076/e53e512e-f1f0-11e6-8a9a-33e26a7d41aa.png\" width=640px\u003e\n\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/33768/22871075/e5352ad6-f1f0-11e6-844a-6428009f343f.png\" width=640px\u003e\n\n# Acknowledgement\n\n[@norio_nomura](https://github.com) gave me a lot of codes and comments. This project is based on [his code](https://gist.github.com/norio-nomura/2a79822004e7c89228300cf19595ca99).\n\n# License\n\nMIT License. This library includes source codes of [Google Toolbox for Mac](https://github.com/google/google-toolbox-for-mac).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonsongithub%2Fhtmlspecialcharacters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonsongithub%2Fhtmlspecialcharacters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonsongithub%2Fhtmlspecialcharacters/lists"}