Is there a way i can create an easyish function or is there already 1 with ASP where i can convert HTML to text... where as it will display/replace any characters as text rathe than executing it as html.
K i just read the post where u flamed that guy for not learning himself I don't wanna look that way :-/<BR><BR>What i mean is... is there a way other than just creating a function which will replace the html tags with the ascii version to display as text and not run it as html. Is there already a funciton in ASP which will show everything out of a database as it is:<BR><BR>So it would display "<font color='#ff0000'>" instead of actually executing <font color='#ff0000'>
do you mean stripping out the "<" and ">" of the HTML tags? If so just use the Replace Function<BR><BR>newStr = Replace(String_to_replace, chr(60), "")<BR>newStr = Replace(newStr, chr(62), "")<BR><BR>that will replace all of the < > with nothing.<BR><BR>Hope that helps.
Yes kind of... but i was just wondering was there a HTML2Text function that ASP already had which would do it - I already knew i could do that but i just gathered it would be more efficient if there was a different way rather than just filtering the preliminary html tags if i could filter everythign into straight text - but thinking about it im just being a dim bat i might aswell jsut do that its as effective either way.<BR><BR>Thanks alot