HTMLString

screenshot of HTMLString

Escape and unescape HTML entities in Swift

Overview

HTMLString is a powerful library written in Swift that simplifies the handling of HTML entities in Strings. Whether you're developing applications for iOS, macOS, tvOS, or even Linux, this library offers a seamless way to add or remove HTML entities, making your code cleaner and more efficient. The library is designed to work with strings across various platforms and offers robust features that ensure compatibility and performance.

With more than 2100 named entities to remove and support for both ASCII and UTF-8/UTF-16 encodings, HTMLString stands out as an essential tool for developers looking to enhance string manipulation in their applications. Its speed and ease of use make it an attractive option for both seasoned developers and newcomers alike.

Features

  • Adds Entities for ASCII and UTF-8/UTF-16 Encodings: Easily convert unsupported characters into readable HTML entities.
  • Removes Over 2100 Named Entities: Efficiently clean up strings by eliminating unwanted HTML entities like &.
  • Supports Removing Decimal and Hexadecimal Entities: Versatile handling of various HTML entity formats simplifies string processing.
  • Designed for Swift Extended Grapheme Clusters: Guarantees complete emoji support, ensuring a 100% emoji-proof experience.
  • Fully Unit Tested: Reliable performance with comprehensive testing built in, promoting confidence in its use.
  • Fast and Efficient: Optimized for speed to ensure quick processing of string operations.
  • Well-Documented: In-depth documentation assists users in understanding and utilizing all features effectively.
  • Compatible with Objective-C: Smooth integration with existing Objective-C codebases through specific APIs for simplicity.