Always strip unsupported HTML in RichLabel

This commit is contained in:
bleakgrey 2019-03-09 13:48:58 +03:00
parent ffbc9f7736
commit 2726886130
4 changed files with 8 additions and 8 deletions

View File

@ -144,7 +144,7 @@ public class Tootle.AccountView : TimelineView {
public void rebind (){
display_name.set_label ("<b>%s</b>".printf (account.display_name));
username.label = "@" + account.acct;
note.set_label (Html.simplify (account.note));
note.set_label (account.note);
button_follow.visible = !account.is_self ();
network.load_avatar (account.avatar, avatar, 128);

View File

@ -26,7 +26,7 @@ public class Tootle.RichLabel : Gtk.Label {
}
public new void set_label (string text) {
base.set_markup (escape_entities (text));
base.set_markup (Html.simplify(escape_entities (text)));
}
public void wrap_words () {

View File

@ -208,7 +208,7 @@ public class Tootle.StatusWidget : Gtk.EventBox {
title_user.set_label ("<b>%s</b>".printf ((formal.account.display_name)));
title_acct.label = "@" + formal.account.acct;
content_label.label = formal.content;
content_label.set_label (formal.content);
content_label.mentions = formal.mentions;
pin_indicator.visible = status.pinned;