Sprache: C#
Enfernt die HTML Tags aus einem String.
using System.Text.RegularExpressions;
const string pattern = "<.*?>";
static string remoteTags (string inputString)
{
return Regex.Replace
(inputString, pattern, string.Empty);
}
using System.Text.RegularExpressions;
const string pattern = "<.*?>";
static string remoteTags (string inputString)
{
return Regex.Replace
(inputString, pattern, string.Empty);
}
Alte URL:
/snippet/html-tags-aus-string-entfernen/1278