Latest 1.3.6
Homepage https://github.com/sonsongithub/HTMLSpecialCharacters
License MIT
Platforms ios 8.4, osx 10.9, tvos 9.2, requires ARC
Authors

Library to escape/unescape HTML special characters in Swift.
Google Toolbox for Mac is known as a great library which supports escaping/unescaping HTML special characters.
But it’s written in Objective-C.

Test code

HTMLSpecialCharacters passed the alomost same test code of Google Toolbox for Mac.
Please check it.

Performance

HTMLSpecialCharacters can escape/unescape HTML special chracters much faster than Google Toolbox for Mac.
The figure below shows the performance of escaping/unescaping the test code. These score were measured on iMac (27-inch Late 2012).
Test code for Google Toolbox for Mac is here.

HTMLSpecialCharacters
HTMLSpecialCharacters

Acknowledgement

@norio_nomura gave me a lot of codes and comments. This project is based on his code.

License

MIT License. This library includes source codes of Google Toolbox for Mac.

Latest podspec

{
    "name": "HTMLSpecialCharacters",
    "version": "1.3.6",
    "summary": "Library to escape/unescape HTML special characters in Swift.",
    "description": "Library to escape/unescape HTML special characters in Swift. Google Toolbox for Mac is known as a great library which supports escaping/unescaping HTML special characters. But it's written in Objective-C.",
    "homepage": "https://github.com/sonsongithub/HTMLSpecialCharacters",
    "license": "MIT",
    "authors": {
        "sonson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sonsongithub/HTMLSpecialCharacters.git",
        "tag": "1.3.6",
        "submodules": true
    },
    "social_media_url": "https://twitter.com/sonson_twit",
    "platforms": {
        "ios": "8.4",
        "osx": "10.9",
        "tvos": "9.2"
    },
    "requires_arc": true,
    "source_files": [
        "Sources/*.swift"
    ],
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This