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
©2007-2021 ExtensionMethod.NET.
ExtensionMethod.NET was built by Loek van den Ouweland and Fons Sonnemans
with ASP.NET Core, HTML, CSS, Javascript, SQL Server and some of the great methods you have posted here.
By using this website, you agree to the legal stuff .
We thank all who contributed to this website for the last twelve years. It really helped making this website a success!
Just looking for examples? Visit our sister site justgivemeanexample.com for code examples in C#, Python, Javascript and many more languages.
Looking for Visual Studio Code Snippets? Visit our sister site VisualStudioCodeSnippets.com .