Sprache: C#
Funktion die alle HTML Tags in einem String entfernt und ohne wieder zurück gibt.
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-entfernen/3796