Browse Source

add HTML escaping on text provided by tweepy

master
Tuxicoman 8 months ago
parent
commit
1b7a3d7658
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      twitter2mastodon.py

+ 2
- 2
twitter2mastodon.py View File

@ -19,7 +19,7 @@ import argparse
from getpass import getpass
import mimetypes
import urllib.request
import html
def register():
"""Generate config file"""
@ -151,7 +151,7 @@ def post(config_file_path,dry_run=False):
continue
#Get full text
text = tweet.full_text
text = html.unescape(tweet.full_text)
#Get medias urls
imgs = []


Loading…
Cancel
Save