Gtk.TextIter.prototype.get_visible_slice

function get_visible_slice(end:Gtk.TextIter):String {
    // Gjs wrapper for gtk_text_iter_get_visible_slice()
}

Like gtk_text_iter_get_slice (), but invisible text is not included. Invisible text is usually invisible because a Gtk.TextTag with the "invisible" attribute turned on has been applied to it.

end

iterator at end of range

Returns

slice of text from the buffer