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]?
  • Initialize a HTMLSettings with 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

    excludeTagsCompletely

    Array of HTML tags that are excluded completely.

    excludeTagsKeepContent

    Array of HTML tags which are excluded but still retain content.

    keepContent

    Object containing an array of XPaths.

    excludeContent

    Object containing an array of XPaths.

    keepTagAttributes

    An array of HTML tag attributes to keep in the converted document.

    excludeTagAttributes

    Array of HTML tag attributes to exclude.

    Return Value

    An initialized HTMLSettings.