Link to home
Start Free TrialLog in
Avatar of bmanmike39
bmanmike39

asked on

How do you get a textbox to display data with out the html tags

I have a textbox that I want the user to be able to edit the code without the html tags showing.

Is this possible?  When the user created the form I used:

TextBox1.Text.Replace(Environment.NewLine, "<br/>");

For storing the info with line breaks.  Now I want to convert it back for when they edit the info.

Thanks for any help.
ASKER CERTIFIED SOLUTION
Avatar of HugoHiasl
HugoHiasl

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I do...
TextBox1.Text = SomeText.Replace("<br/>",chr(10))
Espavo
Avatar of bmanmike39
bmanmike39

ASKER

HgoHias  Your code will does nothing when i us it.

Espavo  i get the following error when i use your code

"The name 'chr' does not exist in the current context"

If i put "" around it it charges the br to the chr(10)

Thx!