Static Methodscinfu.swiftsoup 2.8.7SwiftSoup
unescape(_:)
Entities.swift:327static func unescape(_ string: [UInt8]) throws -> [UInt8]
static func unescape(_ string: [UInt8]) throws -> [UInt8]
import SwiftSoup
class Entities
HTML entities, and escape routines. Source: W3C HTML named character references.
@frozen struct UInt8
An 8-bit unsigned integer value type.
static func codepointsForName(_ name: ArraySlice<UInt8>) -> [UnicodeScalar]?
static func escape(_ string: String, _ out: OutputSettings) -> String
static func escape(_ string: String, _ encode: String.Encoding = .utf8) -> String
static func getByName(name: String) -> String?
Get the character(s) represented by the named entitiy
static func getByName(name: ArraySlice<UInt8>) -> String?
static func isBaseNamedEntity(_ name: ArraySlice<UInt8>) -> Bool
Check if the input is a known named entity in the base entity set.
static func isNamedEntity(_ name: ArraySlice<UInt8>) -> Bool
Check if the input is a known named entity
static func unescape(_ string: String) throws -> String
static func unescape(string: String, strict: Bool) throws -> String
Unescape the input string.
static func unescape(string: [UInt8], strict: Bool) throws -> [UInt8]
class EscapeMode