js去除em标签
$(this).html().replace(/<(?!em|\/em).*?>/g, '')
C#去除
System.Text.RegularExpressions.Regex.Replace(hit.Source.Content.HtmlDecode(), "<(?!em|/em).*?>", "");
多个就是
/<(?!img).*?>/g, ""
/<(?!img|p|\/p).*?>/g,""
js去除em标签
$(this).html().replace(/<(?!em|\/em).*?>/g, '')
C#去除
System.Text.RegularExpressions.Regex.Replace(hit.Source.Content.HtmlDecode(), "<(?!em|/em).*?>", "");
多个就是
/<(?!img).*?>/g, ""
/<(?!img|p|\/p).*?>/g,""