Sample ASP.NET Core Web API application utilizing Html Agility Pack library to replace HTML elements text.
This sample randomly replaces names of people found here - https://simple.wikiquote.org/wiki/List_of_people_by_name
Try passing - "\div[@class='mw-parser-output']\h3\following-sibling::ul\li\a" as input to the endpoint to verify.
More examples of Html Agility Pack can be found here - https://html-agility-pack.net/online-examples