Feb 17, 2005, 6:33 PM
Post #1 of 1
Getting the data entered by user,just the TEXT,not HTML
Great product. came across yesterday and almost with no offort, I was able to use it on my pages. Wonderful.I am stuck in one of the pages.
Requirement is to show htmlarea for a 'Display Name' field so that user can enter data in that , do all the formatting as needed. But here is also a hidden field called 'hidden_dispName', value for 'hidden_dispName' should be what user entered in 'Display Name' htmlarea excluding all the formattting other than leaving the line breaks/spaces?
So if user enter
veryimportant data (which is bold and italic, htmlarea would include it in htmltags)
I need to remove the htmltags before I set the value to 'hidden_dispName'. before submitting, length validation would be perfomed on 'hidden_dispName' and saved. In database,I need to preserve the contents from htmlarea as well as from 'hidden_dispName'.
Please help. Any advise would be highlu appreciated.