Drafts Action Directory

Remove HTML

Posted by @hinnerkhaardt, Last update 16 days ago

Removes HTML tags from text.

Warning: Based on a simple Regexp, might not work as expected, i.e. remove the wrong part, not remove anything or even mess up everything beyond recognition.

Install

Steps

  • script

    draft.content = draft.content.replace(/<\/?[^>]+(>|$)/g, "");
    draft.update();

Options

  • After Success Nothing
    Notification Info
    Log Level Info

Comments

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