== A gotcha with _' in the text, it will become the end of the textarea (and your page layout may explode). Since most people using your website don't do either of these, the simple solution works almost all of the time. The real problem is that people develop the wrong mental model of what __' in the initial content you insert into a textarea: how is the browser supposed to tell the you inserted (that it is supposed to ignore) apart from the real in your HTML that closes the textarea? The answer is that it can't, and thus that the mental model is wrong. What is actually going on is that browsers treat the contents of __' so it doesn't terminate the textarea. This means that you need to quote at least some things in your textarea initial content; minimally '&' and '<', but if you already have a general HTML quoting function (and you should), just use it and be done. (The browser will strip this quoting when it creates the actual initial contents, and thus you will get back the unquoted version when the user _POST_s for the next round.)