Click to See Complete Forum and Search --> : Replacing tags


telmessos
01-07-2007, 01:29 PM
Hi everybody,

I would like to know how I can separate a special tag created by me from an info coming from database. For example:

if the text is

This is a test message. This point is the part where we get the link

How can I replace [link=default.asp] tag with <a href="default.asp"> tag???

chrismartz
01-07-2007, 02:50 PM
You could use the Replace Function output = Replace(output, "link=", "a href=")
output = Replace(output, "/link", "/a")
output = Replace(output, "[", "<")
output = Replace(output, "]", ">")