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