remove empty classes which causes some link texts to be rendered ugly

This commit is contained in:
Arthur Schiwon 2018-11-15 00:05:07 +01:00
parent 45cecbc0ce
commit 90802e506f
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -239,7 +239,11 @@ function parseToot (data){
} else { } else {
item = parseAccounts(item, "", data["account"]) item = parseAccounts(item, "", data["account"])
} }
item['content'] = data['content'].replaceAll('</span><span class="invisible">', '').replaceAll('<span class="invisible">', '').replaceAll('</span><span class="ellipsis">', ''); item['content'] = data['content']
.replaceAll('</span><span class="invisible">', '')
.replaceAll('<span class="invisible">', '')
.replaceAll('</span><span class="ellipsis">', '')
.replaceAll('class=""', '');
item['attachments'] = []; item['attachments'] = [];