HTMLSettings
public struct HTMLSettings : Codable, Equatable
A list of HTML conversion settings.
-
Array of HTML tags that are excluded completely.
Declaration
Swift
public var excludeTagsCompletely: [String]? -
Array of HTML tags which are excluded but still retain content.
Declaration
Swift
public var excludeTagsKeepContent: [String]? -
Object containing an array of XPaths.
Declaration
Swift
public var keepContent: XPathPatterns? -
Object containing an array of XPaths.
Declaration
Swift
public var excludeContent: XPathPatterns? -
An array of HTML tag attributes to keep in the converted document.
Declaration
Swift
public var keepTagAttributes: [String]? -
Array of HTML tag attributes to exclude.
Declaration
Swift
public var excludeTagAttributes: [String]? -
init(excludeTagsCompletely:excludeTagsKeepContent: keepContent: excludeContent: keepTagAttributes: excludeTagAttributes: ) Initialize a
HTMLSettingswith member variables.Declaration
Swift
public init( excludeTagsCompletely: [String]? = nil, excludeTagsKeepContent: [String]? = nil, keepContent: XPathPatterns? = nil, excludeContent: XPathPatterns? = nil, keepTagAttributes: [String]? = nil, excludeTagAttributes: [String]? = nil )Parameters
excludeTagsCompletelyArray of HTML tags that are excluded completely.
excludeTagsKeepContentArray of HTML tags which are excluded but still retain content.
keepContentObject containing an array of XPaths.
excludeContentObject containing an array of XPaths.
keepTagAttributesAn array of HTML tag attributes to keep in the converted document.
excludeTagAttributesArray of HTML tag attributes to exclude.
Return Value
An initialized
HTMLSettings.
View on GitHub
HTMLSettings Structure Reference