/ Published in: C#
Expand |
Embed | Plain Text
using System.Text.RegularExpressions; namespace Solution.Core.Extensions { public static class StringExtensions { public static string StripHtml (this string inputString) { const string htmlTagPattern = "<(.|\n)*?>"; return Regex.Replace(inputString, htmlTagPattern, string.Empty); } } }
You need to login to post a comment.
