Action

Dumb Quotes

Posted by agiletortoise, Last update almost 6 years ago

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

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
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.