Hi Tan Soo Loon,
This function will convert your tags, just pass it the html...
Code:
function ConvertTags(pHtml){
return pHtml.replace(/<([^>]*)>/g, "[$1]");
}
BTW, when posting in the future, could you give your topics a suitable title please e.g. "replace html tags" & not "urgent", that way people searching the forum in the future will be able to see whether or not a topic might help them (plus IMHO putting "urgent" as a subject is unlikely to reduce response times).
Kind regards,
Chris