• Removes either text between given tokens or just the tokens themselves. Example use case: YAML manipulation similar to Helm: openToken = "{{ if ... }}", closeToken = "{{ end }}""

    Parameters

    • str: string
    • openToken: string
    • closeToken: string
    • keep: boolean

    Returns string