Merge pull request #38 from blizzz/fix/ugly-links

remove empty classes which causes some link texts to be rendered ugly
This commit is contained in:
Dusko Angirevic 2018-12-14 11:41:04 +01:00 committed by GitHub
commit 3ec5066872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,7 +239,11 @@ function parseToot (data){
} else {
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'] = [];