Oct 20, 2004 #1 mtarby Programmer Feb 19, 2003 89 US I'm trying to write a script in asp that will write the contents of a news database into an rss feed. My problem is stripping the <BR> tags out of the news item. Is there an easy way to convert any tags to line breaks? Thanks in advance. Michelle
I'm trying to write a script in asp that will write the contents of a news database into an rss feed. My problem is stripping the <BR> tags out of the news item. Is there an easy way to convert any tags to line breaks? Thanks in advance. Michelle
Oct 20, 2004 #2 trollacious Programmer Sep 29, 2004 4,046 US Try something like: Do While Instr(newsstring, "<br>") > 0 newsstring = Replace(newsstring, "<br>", Chr(13) & Chr(10)) Loop Upvote 0 Downvote
Try something like: Do While Instr(newsstring, "<br>") > 0 newsstring = Replace(newsstring, "<br>", Chr(13) & Chr(10)) Loop
Oct 20, 2004 1 #3 ChrisHirst IS-IT--Management Nov 23, 2001 8,049 GB string = replace(string,"<br>",vbCrLf) Chris. Indifference will be the downfall of mankind, but who cares? http://www.candsdesign.co.uk A website that proves the cobblers kids adage. http://www.cram-system.com Nightclub counting systems So long, and thanks for all the fish. Upvote 0 Downvote
string = replace(string,"<br>",vbCrLf) Chris. Indifference will be the downfall of mankind, but who cares? http://www.candsdesign.co.uk A website that proves the cobblers kids adage. http://www.cram-system.com Nightclub counting systems So long, and thanks for all the fish.
Oct 20, 2004 Thread starter #4 mtarby Programmer Feb 19, 2003 89 US Thanks Chris - I worked that into the function that stripped the paragraph tags and it works great! Michelle Upvote 0 Downvote
Thanks Chris - I worked that into the function that stripped the paragraph tags and it works great! Michelle