I need to be able to replace all the non alpha characters in the url, such as the following: Char : should be %3A Char / should be %2F Char . should be %2E Char ? should be %3F Char & should be %26
Anyway, I think it needs to be done in the edit_hrefs function, but I am terrible at javascript, so I was hoping someone could help me!
Thanks! Terry ===
<script language="javascript1.2" runat=server> function edit_hrefs(s_html, type){ s_str = new String(s_html); if (type == 1) { s_str = s_str.replace(/\b(http\:\/\/[\w+\.]+[\w+\.\:\/\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi, "<a href=http://www.ahugedeal.com/jump.asp?link=\$1\ target=\"_blank\">$1<\/a>"); } </script>