public IEnumerable<IDocument> Execute(IReadOnlyList<IDocument> inputs, IExecutionContext context) { HtmlQuery query = new HtmlQuery(_querySelector).First(); if (_outerHtml) { query.GetOuterHtml(_metadataKey); } else { query.GetInnerHtml(_metadataKey); } return query.Execute(inputs, context); }
public IEnumerable <IDocument> Execute(IReadOnlyList <IDocument> inputs, IExecutionContext context) { HtmlQuery query = new HtmlQuery(_querySelector).First(); if (_outerHtml) { query.GetOuterHtml(_metadataKey); } else { query.GetInnerHtml(_metadataKey); } return(query.Execute(inputs, context)); }