T
Tem
im looking for a regex that removes html special characters
such at
& followed by a word then ;
Tem
such at
& followed by a word then ;
Tem
Tem said:im looking for a regex that removes html special characters
such at
& followed by a word then ;
Arne Vajhøj said:Tem said:im looking for a regex that removes html special characters
such at
& followed by a word then ;
Remove is easy.
s = Regex.Replace(s, "&[^;]+;", "");
should do that.
You can get the meaning of the entity inserted with:
s = HttpUtility.HtmlDecode(s);
Arne
Arne Vajhøj said:Tem said:im looking for a regex that removes html special characters
such at
& followed by a word then ;
Remove is easy.
s = Regex.Replace(s, "&[^;]+;", "");
should do that.
You can get the meaning of the entity inserted with:
s = HttpUtility.HtmlDecode(s);
Arne