URLEncode

public struct URLEncode : Shortcut

Encodes or decodes text passed into the action to be suitable for inclusion in a URL by adding or removing percent escapes when appropriate.

Input: Text

Result: Text

  • Controls whether percent escapes are added or removed.

    See more

    Declaration

    Swift

    public enum Operation : String, Encodable
  • The contents of the shortcut.

    Declaration

    Swift

    public var body: some Shortcut { get }
  • Initializes the shortcut.

    Declaration

    Swift

    public init(input: Text, operation: VariableValue<Operation>)

    Parameters

    input

    The input text to encode or decode.

    operation

    The operation to apply to the text, either encode or decode.

  • Initializes the shortcut.

    Declaration

    Swift

    public init(input: Text, operation: Operation = .encode)

    Parameters

    input

    The input text to encode or decode.

    operation

    The operation to apply to the text, either encode or decode.