Helpful Information
 
 
Category: ASP Programming
Convert HTML Tags in Textarea by ASP

hi ,
i wanna convert the HTML tags in the Textarea with help of the ASP code. Means i m getting some value form DB which comes in the format of
------------
this is text <br><br><ul><li> list-1 value</li><li>list-2 val</li></ul>
------------
i wanna conversion of the above text in textarea
i think this will make sense to U
help me out int his it is very URGENT
thanx
Sur

Do you want the conversion to occur when the data is next displayed, similiar to how http://forums.devshed.com works?

hi victorpendleton,
data is stored in DB is like this
==============
<br><br> <ul> <li> list-1 value </li> <li>list-2 val</li> </ul>
==============
i want to display this data in the form whn it converts this as HTML value
my biggest problem is tht i want to display this value in TEXTAREA.

i think this make sense to u
bye
Surender

You may want to check with a Javascript expert but I do not believe you can format a textarea. If the text is for display and not for use updating, would you be inclined to just display the formatted data in a table data cell.

hi victorpendleton,
sir thanx a lot for u'r elp and quick reply
tht's wht i want to listen from any of the programmer tht it is not possible actually i tried my best to do this but the thing is i got faliuer so at the end i came to know tht TEXTAREA is a form-element not an editor whr i can show the formatted result
but just to confir this i post the question here.
so i think u r right this is not possible
br
surender

Originally posted by tosurender
hi victorpendleton,
sir thanx a lot for u'r elp and quick reply
tht's wht i want to listen from any of the programmer tht it is not possible actually i tried my best to do this but the thing is i got faliuer so at the end i came to know tht TEXTAREA is a form-element not an editor whr i can show the formatted result
but just to confir this i post the question here.
so i think u r right this is not possible
br
surender

from what i remember in javascript, a text area follows javascript string laws (a lot like the c++ strings)
a paragraph return would be a \n in the textbox...

Hi,
Did you find it? Because i'm in need of samething.










privacy (GDPR)