Convert text in input into plain text

When a user paste texts into my input box, how do I remove all formatting on it / make it just plain text?

This topic was automatically closed after 70 days. New replies are no longer allowed.