Action

Escape Hashtags

Posted by schmeggahead, Last update 4 months ago - Unlisted

escape hashtags to retain them but not have them treated as a hashtag in the destination app.

The action edits in place only

Steps

  • script

    // See online documentation for examples
    // https://docs.getdrafts.com/docs/actions/scripting
    draft.content = draft.content.replace(/(#\S+)/g, "\\$1")
    draft.update() // save changes

Options

  • After Success Nothing
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.