Node#textContent-like function for Google's gumbo parser.