My program has a gtk.TreeView
which displays a gtk.ListStore
. The gtk.ListStore
contains strings like this:
"<span size='medium'><b>"+site_title+"</b></span>"+"\n"+URL
Where URL
is (obviously) a URL string. Sometimes there are characters in URL
that cause pango to fail to parse the markup.
Is there a way to escape URL
as a whole so that pango will just ignore it so it will be displayed literally? If not, how should I "escape" special characters in URLs?