How do i make sure that the literal string is produced when retrieving the value from the textarea?

If a user types html code inside the textarea box, the problem is that it doesn't display the literal string, rather, the html code.
If i use the [xmp]tags, the problem is , it displays it in a font which is out of place with the [div] setting used.