Resources »

Solutions Hub »

Automations »

Strip common prefixes from text lines

Removing email quotes

Here are examples of using the |strip_lines filter (prefix removal, quote stripping) for text processing in automation scripting.

  • 
    start:
      set:
        message@text:
          > This is quoted text
          > From a prior conversation
          > and we want to strip it out
          >
          This is the reply
      return:
        message: {{message|strip_lines(prefixes='>')}}
    
    
  • 
    __return:
      message: This is the reply