Static Methodscinfu.swiftsoup 2.8.7SwiftSoup
getByName(name:)
Get the character(s) represented by the named entitiy
static func getByName(name: String) -> String?
<param>
<return>
Get the character(s) represented by the named entitiy
static func getByName(name: String) -> String?
<param>
<return>
import SwiftSoup
class Entities
HTML entities, and escape routines. Source: W3C HTML named character references.
@frozen struct String
A Unicode string value that is a collection of characters.
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: 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: [UInt8]) throws -> [UInt8]
static func unescape(string: String, strict: Bool) throws -> String
Unescape the input string.
static func unescape(string: [UInt8], strict: Bool) throws -> [UInt8]
class EscapeMode