Action

Remove HTML

Posted by @hinnerkhaardt, Last update over 6 years 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.

Steps

  • script

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

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.