mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-11-21 06:22:59 +00:00
Bugfix: Add newlines in the place of <br /> tags when finding InnerText
This commit is contained in:
parent
c179a77cc3
commit
ffb7318382
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ namespace PolyFeed.Helpers
|
|||
if (selectedNode == null)
|
||||
throw new ApplicationException($"Error: Selector {settings.Selector} failed to find any elements.");
|
||||
|
||||
foreach (HtmlNode nextNode in htmlNode.QuerySelectorAll("br")) {
|
||||
nextNode.InnerHtml = "\n";
|
||||
}
|
||||
Console.WriteLine("InnerText: {0}", selectedNode.InnerText);
|
||||
if (string.IsNullOrWhiteSpace(settings.Attribute))
|
||||
return selectedNode.InnerText;
|
||||
|
||||
|
|
Loading…
Reference in a new issue