How to load HTML file into Textarea as Plain Text?

Discussion in 'ASP .Net Web Controls' started by Viktor, Oct 2, 2003.

  1. Viktor

    Viktor Guest

    Hi everybody,
    I am trying to load HTML file (on a server) into html Textarea control
    ("runat=server").
    I have no problem opening HTML file on the server and writing its
    content into TextArea, but all HTML tags are also being deisplayed in
    TextArea (ex. "<HTML><BODY> This is the body of the file
    </BODY></HTML>").

    Is there a way to get just plain text from HTML file into textarea?
    Ex., if I copy an HTML file from a browser and paste it into textArea,
    I AM getting plain text, but is it possible to do it programmatically?

    Thanks a lot!

    Viktor
    Viktor, Oct 2, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matthew Lenz
    Replies:
    0
    Views:
    517
    Matthew Lenz
    Feb 22, 2005
  2. David Virgil Hobbs
    Replies:
    2
    Views:
    17,249
  3. Alfredo Agosti
    Replies:
    3
    Views:
    346
    Aaron Bertrand - MVP
    Sep 19, 2003
  4. Shaiboy_UK
    Replies:
    11
    Views:
    258
    Shaiboy_UK
    Dec 22, 2004
  5. Jake Barnes
    Replies:
    9
    Views:
    758
    dave cutts
    Feb 21, 2006
Loading...

Share This Page