diff --git a/HTMLEntities-Carthage.xcodeproj/project.pbxproj b/HTMLEntities-Carthage.xcodeproj/project.pbxproj index 38a2ffa..9a27a77 100644 --- a/HTMLEntities-Carthage.xcodeproj/project.pbxproj +++ b/HTMLEntities-Carthage.xcodeproj/project.pbxproj @@ -262,7 +262,8 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_NS_ASSERTIONS = YES; GCC_OPTIMIZATION_LEVEL = 0; - MACOSX_DEPLOYMENT_TARGET = 10.10; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MACOSX_DEPLOYMENT_TARGET = 10.9; ONLY_ACTIVE_ARCH = YES; OTHER_SWIFT_FLAGS = "-DXcode"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -271,7 +272,9 @@ SWIFT_ACTIVE_COMPILATION_CONDITIONS = SWIFT_PACKAGE; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 3.0; + TVOS_DEPLOYMENT_TARGET = 9.0; USE_HEADERMAP = NO; + WATCHOS_DEPLOYMENT_TARGET = 2.0; }; name = Debug; }; @@ -318,7 +321,8 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DYLIB_INSTALL_NAME_BASE = "@rpath"; GCC_OPTIMIZATION_LEVEL = s; - MACOSX_DEPLOYMENT_TARGET = 10.10; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MACOSX_DEPLOYMENT_TARGET = 10.9; OTHER_SWIFT_FLAGS = "-DXcode"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; @@ -326,7 +330,9 @@ SWIFT_ACTIVE_COMPILATION_CONDITIONS = SWIFT_PACKAGE; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 3.0; + TVOS_DEPLOYMENT_TARGET = 9.0; USE_HEADERMAP = NO; + WATCHOS_DEPLOYMENT_TARGET = 2.0; }; name = Release; }; diff --git a/README.md b/README.md index 6e602b3..9fb40e7 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,10 @@ ![Linux](https://img.shields.io/badge/os-linux-green.svg?style=flat) ![Apache 2](https://img.shields.io/badge/license-Apache2-blue.svg?style=flat) [![codecov](https://codecov.io/gh/IBM-Swift/swift-html-entities/branch/master/graph/badge.svg)](https://codecov.io/gh/IBM-Swift/swift-html-entities) +[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) ## Summary -Pure Swift HTML encode/decode utility tool for Swift 3. +Pure Swift HTML encode/decode utility tool for Swift. Includes support for HTML5 named character references. You can find the list of all 2231 HTML5 named character references [here](https://www.w3.org/TR/html5/syntax.html#named-character-references). @@ -29,7 +30,7 @@ API documentation for `HTMLEntities` is located [here](https://ibm-swift.github. ## Version Info -`HTMLEntities` 3.0 requires Swift 3, on both macOS and Ubuntu Linux. +Latest release of `HTMLEntities` requires Swift 3. ## Installation diff --git a/docs/Enums.html b/docs/Enums.html index d20c158..1f3c6fb 100644 --- a/docs/Enums.html +++ b/docs/Enums.html @@ -87,9 +87,9 @@

Enums

  • - + - ParseError + ParseError
    @@ -123,7 +123,7 @@

    Declaration

    diff --git a/docs/Enums/ParseError.html b/docs/Enums/ParseError.html index fafb712..f02689a 100644 --- a/docs/Enums/ParseError.html +++ b/docs/Enums/ParseError.html @@ -97,9 +97,9 @@

    ParseError

  • - + - DeprecatedNumericReference + DeprecatedNumericReference
    @@ -129,9 +129,9 @@

    Declaration

  • - + - DisallowedNumericReference + DisallowedNumericReference
    @@ -166,9 +166,9 @@

    Declaration

  • - + - IllegalArgument + IllegalArgument
    @@ -198,9 +198,9 @@

    Declaration

  • - + - InvalidNamedReference + InvalidNamedReference
    @@ -231,9 +231,9 @@

    Declaration

  • - + - MalformedNumericReference + MalformedNumericReference
    @@ -264,9 +264,9 @@

    Declaration

  • - + - MissingSemicolon + MissingSemicolon
    @@ -296,9 +296,9 @@

    Declaration

  • - + - OutsideValidUnicodeRange + OutsideValidUnicodeRange
    @@ -329,7 +329,7 @@

    Declaration

    diff --git a/docs/Extensions.html b/docs/Extensions.html index e317fcb..799656a 100644 --- a/docs/Extensions.html +++ b/docs/Extensions.html @@ -119,7 +119,7 @@

    Declaration

    diff --git a/docs/Extensions/String.html b/docs/Extensions/String.html index 825d723..c233f50 100644 --- a/docs/Extensions/String.html +++ b/docs/Extensions/String.html @@ -93,9 +93,9 @@

    String

  • - + - HTMLEscapeOptions + HTMLEscapeOptions
    @@ -121,9 +121,9 @@

    Declaration

  • - + - htmlEscape(allowUnsafeSymbols:decimal:encodeEverything:useNamedReferences:) + htmlEscape(allowUnsafeSymbols:decimal:encodeEverything:useNamedReferences:)
    @@ -156,15 +156,74 @@

    Declaration

    +
    +

    Parameters

    + + + + + + + + + + + + + + + + + + + +
    + + allowUnsafeSymbols + + +
    +

    Specifies if all ASCII characters should be skipped +when escaping text. Optional

    +
    +
    + + decimal + + +
    +

    Specifies if decimal escapes should be used instead of +hexadecimal escapes. Optional

    +
    +
    + + encodeEverything + + +
    +

    Specifies if all characters should be escaped, even if +some are safe characters. Optional

    +
    +
    + + useNamedReferences + + +
    +

    Specifies if named character references +should be used whenever possible. Optional

    +
    +
    +
  • - + - htmlUnescape(strict:) + htmlUnescape(strict:)
    @@ -195,15 +254,34 @@

    Declaration

    +
    +

    Parameters

    + + + + + + + +
    + + strict + + +
    +

    Specifies if escapes MUST always end with ;.

    +
    +
    +
  • - + - htmlUnescape() + htmlUnescape()
    @@ -242,7 +320,7 @@

    Declaration

    diff --git a/docs/Extensions/String/HTMLEscapeOptions.html b/docs/Extensions/String/HTMLEscapeOptions.html index b2e6ace..681172a 100644 --- a/docs/Extensions/String/HTMLEscapeOptions.html +++ b/docs/Extensions/String/HTMLEscapeOptions.html @@ -94,9 +94,9 @@

    HTMLEscapeOptions

  • - + - allowUnsafeSymbols + allowUnsafeSymbols
    @@ -121,9 +121,9 @@

    Declaration

  • - + - decimal + decimal
    @@ -148,9 +148,9 @@

    Declaration

  • - + - encodeEverything + encodeEverything
    @@ -175,9 +175,9 @@

    Declaration

  • - + - useNamedReferences + useNamedReferences
    @@ -207,7 +207,7 @@

    Declaration

    diff --git a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Enums.html b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Enums.html index d20c158..1f3c6fb 100644 --- a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Enums.html +++ b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Enums.html @@ -87,9 +87,9 @@

    Enums

  • - + - ParseError + ParseError
    @@ -123,7 +123,7 @@

    Declaration

    diff --git a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Enums/ParseError.html b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Enums/ParseError.html index fafb712..f02689a 100644 --- a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Enums/ParseError.html +++ b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Enums/ParseError.html @@ -97,9 +97,9 @@

    ParseError

  • - + - DeprecatedNumericReference + DeprecatedNumericReference
    @@ -129,9 +129,9 @@

    Declaration

  • - + - DisallowedNumericReference + DisallowedNumericReference
    @@ -166,9 +166,9 @@

    Declaration

  • - + - IllegalArgument + IllegalArgument
    @@ -198,9 +198,9 @@

    Declaration

  • - + - InvalidNamedReference + InvalidNamedReference
    @@ -231,9 +231,9 @@

    Declaration

  • - + - MalformedNumericReference + MalformedNumericReference
    @@ -264,9 +264,9 @@

    Declaration

  • - + - MissingSemicolon + MissingSemicolon
    @@ -296,9 +296,9 @@

    Declaration

  • - + - OutsideValidUnicodeRange + OutsideValidUnicodeRange
    @@ -329,7 +329,7 @@

    Declaration

    diff --git a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions.html b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions.html index e317fcb..799656a 100644 --- a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions.html +++ b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions.html @@ -119,7 +119,7 @@

    Declaration

    diff --git a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions/String.html b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions/String.html index 825d723..c233f50 100644 --- a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions/String.html +++ b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions/String.html @@ -93,9 +93,9 @@

    String

  • - + - HTMLEscapeOptions + HTMLEscapeOptions
    @@ -121,9 +121,9 @@

    Declaration

  • - + - htmlEscape(allowUnsafeSymbols:decimal:encodeEverything:useNamedReferences:) + htmlEscape(allowUnsafeSymbols:decimal:encodeEverything:useNamedReferences:)
    @@ -156,15 +156,74 @@

    Declaration

    +
    +

    Parameters

    + + + + + + + + + + + + + + + + + + + +
    + + allowUnsafeSymbols + + +
    +

    Specifies if all ASCII characters should be skipped +when escaping text. Optional

    +
    +
    + + decimal + + +
    +

    Specifies if decimal escapes should be used instead of +hexadecimal escapes. Optional

    +
    +
    + + encodeEverything + + +
    +

    Specifies if all characters should be escaped, even if +some are safe characters. Optional

    +
    +
    + + useNamedReferences + + +
    +

    Specifies if named character references +should be used whenever possible. Optional

    +
    +
    +
  • - + - htmlUnescape(strict:) + htmlUnescape(strict:)
    @@ -195,15 +254,34 @@

    Declaration

    +
    +

    Parameters

    + + + + + + + +
    + + strict + + +
    +

    Specifies if escapes MUST always end with ;.

    +
    +
    +
  • - + - htmlUnescape() + htmlUnescape()
    @@ -242,7 +320,7 @@

    Declaration

    diff --git a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions/String/HTMLEscapeOptions.html b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions/String/HTMLEscapeOptions.html index b2e6ace..681172a 100644 --- a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions/String/HTMLEscapeOptions.html +++ b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/Extensions/String/HTMLEscapeOptions.html @@ -94,9 +94,9 @@

    HTMLEscapeOptions

  • - + - allowUnsafeSymbols + allowUnsafeSymbols
    @@ -121,9 +121,9 @@

    Declaration

  • - + - decimal + decimal
    @@ -148,9 +148,9 @@

    Declaration

  • - + - encodeEverything + encodeEverything
    @@ -175,9 +175,9 @@

    Declaration

  • - + - useNamedReferences + useNamedReferences
    @@ -207,7 +207,7 @@

    Declaration

    diff --git a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/index.html b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/index.html index 8f63625..c6f7929 100644 --- a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/index.html +++ b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/index.html @@ -81,10 +81,11 @@

    HTMLEntities

    macOS Linux Apache 2 -codecov

    +codecov +Carthage compatible

    Summary

    -

    Pure Swift HTML encode/decode utility tool for Swift 3.

    +

    Pure Swift HTML encode/decode utility tool for Swift.

    Includes support for HTML5 named character references. You can find the list of all 2231 HTML5 named character references here.

    @@ -105,7 +106,7 @@

    Features

    Version Info

    -

    HTMLEntities 3.0 requires Swift 3, on both macOS and Ubuntu Linux.

    +

    Latest release of HTMLEntities requires Swift 3.

    Installation

    Via Swift Package Manager

    @@ -260,7 +261,7 @@

    License

    diff --git a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/search.json b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/search.json index 6bc9a77..99e8e0d 100644 --- a/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/search.json +++ b/docs/docsets/HTMLEntities.docset/Contents/Resources/Documents/search.json @@ -1 +1 @@ -{"Extensions/String/HTMLEscapeOptions.html#/s:SS12HTMLEntitiesE17HTMLEscapeOptionsV18allowUnsafeSymbolsSbvZ":{"name":"allowUnsafeSymbols","abstract":"

    Specifies if all ASCII characters should be skipped when escaping text

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:SS12HTMLEntitiesE17HTMLEscapeOptionsV7decimalSbvZ":{"name":"decimal","abstract":"

    Specifies if decimal escapes should be used instead of hexadecimal escapes

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:SS12HTMLEntitiesE17HTMLEscapeOptionsV16encodeEverythingSbvZ":{"name":"encodeEverything","abstract":"

    Specifies if all characters should be escaped, even if some are safe characters

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:SS12HTMLEntitiesE17HTMLEscapeOptionsV18useNamedReferencesSbvZ":{"name":"useNamedReferences","abstract":"

    Specifies if named character references should be used whenever possible

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html":{"name":"HTMLEscapeOptions","abstract":"

    Global HTML escape options

    ","parent_name":"String"},"Extensions/String.html#/s:SS12HTMLEntitiesE10htmlEscapeSSSb18allowUnsafeSymbols_Sb7decimalSb16encodeEverythingSb18useNamedReferencestF":{"name":"htmlEscape(allowUnsafeSymbols:decimal:encodeEverything:useNamedReferences:)","abstract":"

    Return string as HTML escaped by replacing non-ASCII and unsafe characters","parent_name":"String"},"Extensions/String.html#/s:SS12HTMLEntitiesE12htmlUnescapeSSSb6strict_tKF":{"name":"htmlUnescape(strict:)","abstract":"

    Return string as HTML unescaped by replacing HTML character references with their","parent_name":"String"},"Extensions/String.html#/s:SS12HTMLEntitiesE12htmlUnescapeSSyF":{"name":"htmlUnescape()","abstract":"

    Return string as HTML unescaped by replacing HTML character references with their","parent_name":"String"},"Extensions/String.html":{"name":"String"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO26DeprecatedNumericReferenceACSScACmF":{"name":"DeprecatedNumericReference","abstract":"

    If that number is one of the numbers in the first column of the following","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO26DisallowedNumericReferenceACSScACmF":{"name":"DisallowedNumericReference","abstract":"

    [I]f the number is in the range 0x0001 to 0x0008, 0x000D to 0x001F, 0x007F","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO15IllegalArgumentACSScACmF":{"name":"IllegalArgument","abstract":"

    This should NEVER be hit in code execution. If this error is thrown, then","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO21InvalidNamedReferenceACSScACmF":{"name":"InvalidNamedReference","abstract":"

    [I]f the characters after the U+0026 AMPERSAND character (&) consist of","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO25MalformedNumericReferenceACSScACmF":{"name":"MalformedNumericReference","abstract":"

    If no characters match the range, then don’t consume any characters","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO16MissingSemicolonACSScACmF":{"name":"MissingSemicolon","abstract":"

    [I]f the next character is a U+003B SEMICOLON, consume that too.","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO24OutsideValidUnicodeRangeACSScACmF":{"name":"OutsideValidUnicodeRange","abstract":"

    [I]f the number is in the range 0xD800 to 0xDFFF or is greater","parent_name":"ParseError"},"Enums/ParseError.html":{"name":"ParseError","abstract":"

    Enums used to delineate the different kinds of parse errors"},"Enums.html":{"name":"Enums","abstract":"

    The following enums are available globally.

    "},"Extensions.html":{"name":"Extensions","abstract":"

    The following extensions are available globally.

    "}} \ No newline at end of file +{"Extensions/String/HTMLEscapeOptions.html#/s:ZvVE12HTMLEntitiesSS17HTMLEscapeOptions18allowUnsafeSymbolsSb":{"name":"allowUnsafeSymbols","abstract":"

    Specifies if all ASCII characters should be skipped when escaping text

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:ZvVE12HTMLEntitiesSS17HTMLEscapeOptions7decimalSb":{"name":"decimal","abstract":"

    Specifies if decimal escapes should be used instead of hexadecimal escapes

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:ZvVE12HTMLEntitiesSS17HTMLEscapeOptions16encodeEverythingSb":{"name":"encodeEverything","abstract":"

    Specifies if all characters should be escaped, even if some are safe characters

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:ZvVE12HTMLEntitiesSS17HTMLEscapeOptions18useNamedReferencesSb":{"name":"useNamedReferences","abstract":"

    Specifies if named character references should be used whenever possible

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html":{"name":"HTMLEscapeOptions","abstract":"

    Global HTML escape options

    ","parent_name":"String"},"Extensions/String.html#/s:FE12HTMLEntitiesSS10htmlEscapeFT18allowUnsafeSymbolsSb7decimalSb16encodeEverythingSb18useNamedReferencesSb_SS":{"name":"htmlEscape(allowUnsafeSymbols:decimal:encodeEverything:useNamedReferences:)","abstract":"

    Return string as HTML escaped by replacing non-ASCII and unsafe characters","parent_name":"String"},"Extensions/String.html#/s:FE12HTMLEntitiesSS12htmlUnescapeFzT6strictSb_SS":{"name":"htmlUnescape(strict:)","abstract":"

    Return string as HTML unescaped by replacing HTML character references with their","parent_name":"String"},"Extensions/String.html#/s:FE12HTMLEntitiesSS12htmlUnescapeFT_SS":{"name":"htmlUnescape()","abstract":"

    Return string as HTML unescaped by replacing HTML character references with their","parent_name":"String"},"Extensions/String.html":{"name":"String"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError26DeprecatedNumericReferenceFMS0_FSSS0_":{"name":"DeprecatedNumericReference","abstract":"

    If that number is one of the numbers in the first column of the following","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError26DisallowedNumericReferenceFMS0_FSSS0_":{"name":"DisallowedNumericReference","abstract":"

    [I]f the number is in the range 0x0001 to 0x0008, 0x000D to 0x001F, 0x007F","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError15IllegalArgumentFMS0_FSSS0_":{"name":"IllegalArgument","abstract":"

    This should NEVER be hit in code execution. If this error is thrown, then","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError21InvalidNamedReferenceFMS0_FSSS0_":{"name":"InvalidNamedReference","abstract":"

    [I]f the characters after the U+0026 AMPERSAND character (&) consist of","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError25MalformedNumericReferenceFMS0_FSSS0_":{"name":"MalformedNumericReference","abstract":"

    If no characters match the range, then don’t consume any characters","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError16MissingSemicolonFMS0_FSSS0_":{"name":"MissingSemicolon","abstract":"

    [I]f the next character is a U+003B SEMICOLON, consume that too.","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError24OutsideValidUnicodeRangeFMS0_FSSS0_":{"name":"OutsideValidUnicodeRange","abstract":"

    [I]f the number is in the range 0xD800 to 0xDFFF or is greater","parent_name":"ParseError"},"Enums/ParseError.html":{"name":"ParseError","abstract":"

    Enums used to delineate the different kinds of parse errors"},"Enums.html":{"name":"Enums","abstract":"

    The following enums are available globally.

    "},"Extensions.html":{"name":"Extensions","abstract":"

    The following extensions are available globally.

    "}} \ No newline at end of file diff --git a/docs/docsets/HTMLEntities.docset/Contents/Resources/docSet.dsidx b/docs/docsets/HTMLEntities.docset/Contents/Resources/docSet.dsidx index 4c834cf..81417af 100644 Binary files a/docs/docsets/HTMLEntities.docset/Contents/Resources/docSet.dsidx and b/docs/docsets/HTMLEntities.docset/Contents/Resources/docSet.dsidx differ diff --git a/docs/docsets/HTMLEntities.tgz b/docs/docsets/HTMLEntities.tgz index 007e3b9..bfbea10 100644 Binary files a/docs/docsets/HTMLEntities.tgz and b/docs/docsets/HTMLEntities.tgz differ diff --git a/docs/index.html b/docs/index.html index 8f63625..c6f7929 100644 --- a/docs/index.html +++ b/docs/index.html @@ -81,10 +81,11 @@

    HTMLEntities

    macOS Linux Apache 2 -codecov

    +codecov +Carthage compatible

    Summary

    -

    Pure Swift HTML encode/decode utility tool for Swift 3.

    +

    Pure Swift HTML encode/decode utility tool for Swift.

    Includes support for HTML5 named character references. You can find the list of all 2231 HTML5 named character references here.

    @@ -105,7 +106,7 @@

    Features

    Version Info

    -

    HTMLEntities 3.0 requires Swift 3, on both macOS and Ubuntu Linux.

    +

    Latest release of HTMLEntities requires Swift 3.

    Installation

    Via Swift Package Manager

    @@ -260,7 +261,7 @@

    License

    diff --git a/docs/search.json b/docs/search.json index 6bc9a77..99e8e0d 100644 --- a/docs/search.json +++ b/docs/search.json @@ -1 +1 @@ -{"Extensions/String/HTMLEscapeOptions.html#/s:SS12HTMLEntitiesE17HTMLEscapeOptionsV18allowUnsafeSymbolsSbvZ":{"name":"allowUnsafeSymbols","abstract":"

    Specifies if all ASCII characters should be skipped when escaping text

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:SS12HTMLEntitiesE17HTMLEscapeOptionsV7decimalSbvZ":{"name":"decimal","abstract":"

    Specifies if decimal escapes should be used instead of hexadecimal escapes

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:SS12HTMLEntitiesE17HTMLEscapeOptionsV16encodeEverythingSbvZ":{"name":"encodeEverything","abstract":"

    Specifies if all characters should be escaped, even if some are safe characters

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:SS12HTMLEntitiesE17HTMLEscapeOptionsV18useNamedReferencesSbvZ":{"name":"useNamedReferences","abstract":"

    Specifies if named character references should be used whenever possible

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html":{"name":"HTMLEscapeOptions","abstract":"

    Global HTML escape options

    ","parent_name":"String"},"Extensions/String.html#/s:SS12HTMLEntitiesE10htmlEscapeSSSb18allowUnsafeSymbols_Sb7decimalSb16encodeEverythingSb18useNamedReferencestF":{"name":"htmlEscape(allowUnsafeSymbols:decimal:encodeEverything:useNamedReferences:)","abstract":"

    Return string as HTML escaped by replacing non-ASCII and unsafe characters","parent_name":"String"},"Extensions/String.html#/s:SS12HTMLEntitiesE12htmlUnescapeSSSb6strict_tKF":{"name":"htmlUnescape(strict:)","abstract":"

    Return string as HTML unescaped by replacing HTML character references with their","parent_name":"String"},"Extensions/String.html#/s:SS12HTMLEntitiesE12htmlUnescapeSSyF":{"name":"htmlUnescape()","abstract":"

    Return string as HTML unescaped by replacing HTML character references with their","parent_name":"String"},"Extensions/String.html":{"name":"String"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO26DeprecatedNumericReferenceACSScACmF":{"name":"DeprecatedNumericReference","abstract":"

    If that number is one of the numbers in the first column of the following","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO26DisallowedNumericReferenceACSScACmF":{"name":"DisallowedNumericReference","abstract":"

    [I]f the number is in the range 0x0001 to 0x0008, 0x000D to 0x001F, 0x007F","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO15IllegalArgumentACSScACmF":{"name":"IllegalArgument","abstract":"

    This should NEVER be hit in code execution. If this error is thrown, then","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO21InvalidNamedReferenceACSScACmF":{"name":"InvalidNamedReference","abstract":"

    [I]f the characters after the U+0026 AMPERSAND character (&) consist of","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO25MalformedNumericReferenceACSScACmF":{"name":"MalformedNumericReference","abstract":"

    If no characters match the range, then don’t consume any characters","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO16MissingSemicolonACSScACmF":{"name":"MissingSemicolon","abstract":"

    [I]f the next character is a U+003B SEMICOLON, consume that too.","parent_name":"ParseError"},"Enums/ParseError.html#/s:12HTMLEntities10ParseErrorO24OutsideValidUnicodeRangeACSScACmF":{"name":"OutsideValidUnicodeRange","abstract":"

    [I]f the number is in the range 0xD800 to 0xDFFF or is greater","parent_name":"ParseError"},"Enums/ParseError.html":{"name":"ParseError","abstract":"

    Enums used to delineate the different kinds of parse errors"},"Enums.html":{"name":"Enums","abstract":"

    The following enums are available globally.

    "},"Extensions.html":{"name":"Extensions","abstract":"

    The following extensions are available globally.

    "}} \ No newline at end of file +{"Extensions/String/HTMLEscapeOptions.html#/s:ZvVE12HTMLEntitiesSS17HTMLEscapeOptions18allowUnsafeSymbolsSb":{"name":"allowUnsafeSymbols","abstract":"

    Specifies if all ASCII characters should be skipped when escaping text

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:ZvVE12HTMLEntitiesSS17HTMLEscapeOptions7decimalSb":{"name":"decimal","abstract":"

    Specifies if decimal escapes should be used instead of hexadecimal escapes

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:ZvVE12HTMLEntitiesSS17HTMLEscapeOptions16encodeEverythingSb":{"name":"encodeEverything","abstract":"

    Specifies if all characters should be escaped, even if some are safe characters

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html#/s:ZvVE12HTMLEntitiesSS17HTMLEscapeOptions18useNamedReferencesSb":{"name":"useNamedReferences","abstract":"

    Specifies if named character references should be used whenever possible

    ","parent_name":"HTMLEscapeOptions"},"Extensions/String/HTMLEscapeOptions.html":{"name":"HTMLEscapeOptions","abstract":"

    Global HTML escape options

    ","parent_name":"String"},"Extensions/String.html#/s:FE12HTMLEntitiesSS10htmlEscapeFT18allowUnsafeSymbolsSb7decimalSb16encodeEverythingSb18useNamedReferencesSb_SS":{"name":"htmlEscape(allowUnsafeSymbols:decimal:encodeEverything:useNamedReferences:)","abstract":"

    Return string as HTML escaped by replacing non-ASCII and unsafe characters","parent_name":"String"},"Extensions/String.html#/s:FE12HTMLEntitiesSS12htmlUnescapeFzT6strictSb_SS":{"name":"htmlUnescape(strict:)","abstract":"

    Return string as HTML unescaped by replacing HTML character references with their","parent_name":"String"},"Extensions/String.html#/s:FE12HTMLEntitiesSS12htmlUnescapeFT_SS":{"name":"htmlUnescape()","abstract":"

    Return string as HTML unescaped by replacing HTML character references with their","parent_name":"String"},"Extensions/String.html":{"name":"String"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError26DeprecatedNumericReferenceFMS0_FSSS0_":{"name":"DeprecatedNumericReference","abstract":"

    If that number is one of the numbers in the first column of the following","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError26DisallowedNumericReferenceFMS0_FSSS0_":{"name":"DisallowedNumericReference","abstract":"

    [I]f the number is in the range 0x0001 to 0x0008, 0x000D to 0x001F, 0x007F","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError15IllegalArgumentFMS0_FSSS0_":{"name":"IllegalArgument","abstract":"

    This should NEVER be hit in code execution. If this error is thrown, then","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError21InvalidNamedReferenceFMS0_FSSS0_":{"name":"InvalidNamedReference","abstract":"

    [I]f the characters after the U+0026 AMPERSAND character (&) consist of","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError25MalformedNumericReferenceFMS0_FSSS0_":{"name":"MalformedNumericReference","abstract":"

    If no characters match the range, then don’t consume any characters","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError16MissingSemicolonFMS0_FSSS0_":{"name":"MissingSemicolon","abstract":"

    [I]f the next character is a U+003B SEMICOLON, consume that too.","parent_name":"ParseError"},"Enums/ParseError.html#/s:FO12HTMLEntities10ParseError24OutsideValidUnicodeRangeFMS0_FSSS0_":{"name":"OutsideValidUnicodeRange","abstract":"

    [I]f the number is in the range 0xD800 to 0xDFFF or is greater","parent_name":"ParseError"},"Enums/ParseError.html":{"name":"ParseError","abstract":"

    Enums used to delineate the different kinds of parse errors"},"Enums.html":{"name":"Enums","abstract":"

    The following enums are available globally.

    "},"Extensions.html":{"name":"Extensions","abstract":"

    The following extensions are available globally.

    "}} \ No newline at end of file