To clarify, I don't need complete text, thtmldocument.
TextContent already does that.
Examlple: have a list of elements and modify them inside thtmldocument
domNodeList:= thtmldocument.GetElementsByTagName('img');
for i := 0 to domNodeList.Count-1 do
begin
tdomelement(domNodeList[i]).SetAttribute('src',someString);
end;
so needed something instead of
thtmldocument.GetElementsByTagName('img');
To get me text elements. need to modify them one by one, by regex replace in place, inside thtmldocument .