Click here to Skip to main content
14,733,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Insert or Wrap HTML without tags into a TextArea or TextBox?
Posted
Updated 7-May-12 5:32am
Comments
ZurdoDev 7-May-12 11:00am
   
What does this mean?
Sandeep Mewara 7-May-12 11:12am
   
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

If I understand correctly, you want to get rid of html tags, and extract only the plain text, as you would copy text from web page and paste into notepad. Use regualr expressions. You can use
@"(?>(?:[^>'""]+|'[^']*'|""[^""]*"")*)>"
expression or something like this. If you google for "c# strip html" you will find more, this for example.
   
Start here[^]. Sounds like you want to parse a string to strip out the HTML prior to putting it into a textbox/textarea.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900