Gtk.Label.prototype.get_text

function get_text():String {
    // Gjs wrapper for gtk_label_get_text()
}

Fetches the text from a label widget, as displayed on the screen. This does not include any embedded underlines indicating mnemonics or Pango markup. (See Gtk.Label.prototype.get_label)

Returns

the text in the label widget. This is the internal string used by the label, and must not be modified.