Always strip unsupported HTML in RichLabel
This commit is contained in:
parent
ffbc9f7736
commit
2726886130
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue