Finally, got it to print in the textarea. Helps to use <textarea>, instead of regular <input>.