troubleshooting Question

Replacing multiple values in a string

Avatar of higgsy
higgsy asked on
ASP
26 Comments1 Solution903 ViewsLast Modified:
Hi,

Im using the Microsoft XML component to retrieve the source code for certain pages on our website. We have email templates setup on our site, and then we can get the content from any where on our site to send as an email.

When the mail is being sent in HTML format this is fine, it looks perfect. However when its in plain text i run a bit of code that removes all tags such as <br> <html> etc etc.....The one thing this doesnt remove is all occurences of special characters such as vbCrLf,vbTab,VbCr,VbLf.

I could do this using 4 replace statements but there must be somesort of function that i can call once that will replace them with predefined values...

Any ideas anyone??

Thanks in advance

Al Higgs
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 26 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 26 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros