Click here to Skip to main content
15,905,233 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts

Can any please suggested me to remove space "

<a href="http://brakeworld.com/CatalogDisplay.aspx?y=2007&amp;m=FORD&amp;mod=F350%202WD%20(1%20TON)%20AND%20SUPERDUTY"></a>



I would like to remove %20 from the url /./.
Posted
Updated 8-Jul-13 2:08am
v2

System.Web.HttpUtility.UrlPathEncode(string str);
 
Share this answer
 
Comments
vivek_2984 8-Jul-13 8:07am    
how would i implement this ??
Use function like

C#
public static String XHTMLDecode(String Input)
        {
            if (!string.IsNullOrEmpty(Input))
            {
                Input = HttpUtility.HtmlDecode(Input);
                return Input.Replace("&", "&#38;").Replace("&amp;amp;", "&#38;").Replace("<", "&#60;").Replace(">", "&#62;").Replace("\"", "&#34;");
            }
            else
            {
                return string.Empty;
            }

        }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900