Cobbled together this code that kind of does what I want?
using Gumbo
using AbstractTrees
import Gumbo.text
function text(cur_doc::HTMLDocument)
string_parts = []
for elem in PreOrderDFS(aaa.root)
isa(elem, HTMLText) || continue
push!(string_parts, Gumbo.text(elem))
end
return join(string_parts, " ")
end