use native glib::uri parser

This commit is contained in:
yggverse 2024-09-14 14:07:18 +03:00
parent 3545d23f3f
commit e8e46a6217
7 changed files with 72 additions and 126 deletions

View file

@ -265,6 +265,21 @@ Glib::ustring Reader::Make::link(
);
}
/* @TODO
GError * error;
g_uri_resolve_relative(
get_text().c_str(),
get_text().c_str(),
G_URI_FLAGS_NONE,
&error
);
if (NULL)
*/
return Glib::ustring::sprintf(
"<a href=\"%s\" title=\"%s\">%s</a>\n",
Glib::Markup::escape_text(