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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible? 1

Status
Not open for further replies.

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
 
Try something like:


Do While Instr(newsstring, "<br>") > 0
newsstring = Replace(newsstring, "<br>", Chr(13) & Chr(10))

Loop
 
Thanks Chris - I worked that into the function that stripped the paragraph tags and it works great!

Michelle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top