PDA

View Full Version : How To: Change characters in a textarea?



locks
02-16-2005, 04:08 PM
Hello,

I'm fairly new to java so please bare with me!

So, at the moment I have a form with a textarea which is generating XHTML for me, this all works fine. Now, I would like to know how to change characters in the textarea when the "generate" button is clicked.

For example!

Say I had a <br> tag... I would like it to loop through the document that has been loaded into the textarea and change all instances to <br />

I would really appreciate it, if someone could push me in the right direction or perhaps provide some code that I can use to achieve this as it's been really bugging me!

Thanks!