Skip to content

Commit

Permalink
Search - not indexing <script> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
napernik committed Apr 26, 2017
1 parent c80e610 commit e3aca58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Composite/Search/Crawling/XhtmlCrawlingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ private void ProcessElement(XElement element)
return;
}

if (element.Name.LocalName == "script" || element.Name.LocalName == "noscript")
{
return;
}

if (element.Name.LocalName == "a")
{
// TODO: process "href" attribute for page/data references
Expand Down

0 comments on commit e3aca58

Please sign in to comment.