Saturday, March 24, 2012

Strip html tags from listbox

I've been looking around with no luck for the way to get rid of the html tags from showing in a listbox being popullated from the db.

Where have I not looked for this solution?

Thanks all,

ZathYou could always htmlEncode the contents of the listbox. That wouldn't strip away the tags, just convert them. For example <tag> would become <tag>.

You could always write a function that searches for the "<" and ">" characters and strips them off.

Jeff
Yea, thought of that.

It's just in PHP, it's something easy like strip_html or something like that...
Thought and searched for something similar in .Net

Zath

0 comments:

Post a Comment