ExtensionMethod.NET Home of 875 C#, Visual Basic, F# and Javascript extension methods

CleanBRTags

Remove HTML <br \> tags from the string

Source

using System;

public namespace Extensions {

public static class ExtensionMethods 
{ 
    public static string CleanBRTags(this string theString) 
    { 
        return theString.Replace(@"<br \>", ""); 
    } 
}

}

Example

.

Author: unknown

Submitted on: 24 jan 2008

Language: C#

Type: System.String

Views: 4788