Argentini.Halide.H3Text.AutoNoFollow C# (CSharp) Method

AutoNoFollow() public static method

Add rel="nofollow" property to any anchor tags in a string, so web search engines won't evaluate links and give them added weight.
public static AutoNoFollow ( string strVar, string param ) : String
strVar string String to process.
param string Additional params to add to the link, like target="_blank".
return String
        public static String AutoNoFollow(string strVar, string param)
        {
            string final = Regex.Replace(strVar, @"(?<anchor><\s*a\s*)", "<a rel=\"nofollow\" " + (param == String.Empty ? "" : param + " "));
            return final;
        }