fix #3235 - </script> not being removed from Head Content
This commit is contained in:
@ -72,7 +72,7 @@
|
||||
while (index >= 0)
|
||||
{
|
||||
var element = content.Substring(index, content.IndexOf(">", index) - index + 1);
|
||||
if (!string.IsNullOrEmpty(element) && !element.ToLower().StartsWith("<script"))
|
||||
if (!string.IsNullOrEmpty(element) && !element.ToLower().StartsWith("<script") && !element.ToLower().StartsWith("</script"))
|
||||
{
|
||||
if (!headcontent.Contains(element))
|
||||
{
|
||||
|
Reference in New Issue
Block a user