==(_:_:)
Tag.swift:232static func == (lhs: Tag, rhs: Tag) -> Bool
static func == (lhs: Tag, rhs: Tag) -> Bool
import SwiftSoup
class Tag
@frozen struct Bool
A value type whose instances are either true
or false
.
convenience init(_ tagName: String)
init(_ tagName: [UInt8])
static func isKnownTag(_ tagName: [UInt8]) -> Bool
Check if this tagname is a known tag.
static func valueOf(_ tagName: String) throws -> Tag
Get a Tag by name. If not previously defined (unknown), returns a new generic tag, that can do anything.
static func valueOf(_ tagName: [UInt8]) throws -> Tag
static func valueOf(_ tagName: String, _ settings: ParseSettings) throws -> Tag
Get a Tag by name. If not previously defined (unknown), returns a new generic tag, that can do anything.
static func valueOf(_ tagName: [UInt8], _ settings: ParseSettings) throws -> Tag
func canContainBlock() -> Bool
Gets if this tag can contain block tags.
func equals(_ tag: Tag) -> Bool
func formatAsBlock() -> Bool
Gets if this tag should be formatted as a block (or as inline)
func getName() -> String
Get this tag’s name.
func getNameNormal() -> String
func getNameNormalUTF8() -> [UInt8]
func getNameUTF8() -> [UInt8]
func hash(into hasher: inout Hasher)
The hash value.
func isBlock() -> Bool
Gets if this is a block tag.
func isData() -> Bool
Gets if this tag is a data only tag.
func isEmpty() -> Bool
Get if this is an empty tag
func isFormListed() -> Bool
Get if this tag represents a control associated with a form. E.g. input, textarea, output
func isFormSubmittable() -> Bool
Get if this tag represents an element that should be submitted with a form. E.g. input, option
func isInline() -> Bool
Gets if this tag is an inline tag.
func isKnownTag() -> Bool
Get if this is a pre-defined tag, or was auto created on parsing.
func isSelfClosing() -> Bool
Get if this tag is self closing.
func preserveWhitespace() -> Bool
Get if this tag should preserve whitespace within child text nodes.
func toString() -> String