It is unsafe to write confidential text in a web browser since JavaScript attacks can access it from inside the browser. You should rather write your text in a separate application, encrypt it using Tails OpenPGP Applet, and paste the encrypted text in your browser, before sending it by email for example.