Ok, I downloaded the Zenity source and did some poking around. It looks as though having Gtk.Labels with the "use_markup" option set have enabled the Pango Markup Language to be used. See:
http://library.gnome.org/devel/pygtk...-language.html
The span tag in particular lets you do some interesting stuff, but you need to watch the use of double-underlines on the last line of text (it gets clipped by the viewport so it looks like a single underline) - you can fix that with an extra \\n on the end.
Doesn't explain why &entities; are involved, but you can still do some interesting things with it.
Code:
#!/bin/sh
################################################################################
# Gtk.Label (Pango) markup that works with Zenity:
# b, big, i, s, small, span, sub, sup, tt, u
################################################################################
export DEMO_TXT="<b>Bold</b>\\n<big>Big</big>\\n<i>Italic</i>\\n<s>Strikethrough</s>\\n<small>Small</small>\\n<sub>Subscript</sub>\\n<sup>Superscript</sup>\\n<tt>Teletype</tt>\\n<u>Underline</u>\\n<span background=\"#007f00\" font_desc=\"WebDings Italic 24\" foreground=\"#ff7f7f\" stretch=\"ultraexpanded\" strikethrough=\"true\" underline=\"double\" variant=\"smallcaps\" weight=\"900\">Span Text</span>\\n"
echo TXT: $DEMO_TXT
zenity --info --title="Foo Bar Baz" --text="$DEMO_TXT"