Drafts Action Directory

Dumb Quotes

Posted by agiletortoise, Last update 5 months ago

Replace all single and double “smart” quotes with their standard quote marks.

Install

Steps

  • script

    // replace smart angled quotes with "dumb"
    // quotes - single and double
    
    var s = draft.content;
    s = s.replace("“", "\"");
    s = s.replace("”", "\"");
    s = s.replace("‘", "'");
    s = s.replace("’", "'");
    draft.content = s;
    draft.update();

Options

  • After Success Nothing
    Notification Info
    Log Level Error

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.