Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML tags in memo box

Status
Not open for further replies.

dakkarin

Instructor
Nov 11, 2005
76
TR
Hi i want to learn something about memo box
i have text in a StringList and it includes html tags like <br> <i> etc.. is there any way to covert them c++ chars automaticly i mean is there a way every time a <br> sees in the memobox it ll automaticly replace it with \n
if it is possible how?
Thanks

Liars Do Not Fear The Truth If There Are Enough Liars
 
any idea?

Liars Do Not Fear The Truth If There Are Enough Liars
 
Off the top of my head ...

You could parse through the stringlist. Everytime you hit a < character, you process the string until you hit a > character. The parse could then substitute the <XXX> for its C++ equivalent.

Just a thought.


James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top