web-feature: contenteditable="plaintext-only"

baseline logo Widely available

The contenteditable="plaintext-only" global HTML attribute allows the user to edit the content of an element, but prevents rich-text formatting.