So what's happening here is you're also catching the special characters,
is a common one and is simply a line break, the way I thought of first is with the .split() function, but that splits the string into an array, though it does delete the character, then I found the .replace() function that would look like this to get rid of the line break characters:
tweetToCut.replace('
', '')
That would get rid of the line breaks, though you'd have to do this with every character, but you can chain them so it'd look like:
tweetToCut.replace('
', '').replace('xe2', '')
Though unless if you just want the text of the tweet, the characters you want to remove are required for the formatting of the tweet, so if you intend to just use the text, you're good to remove them, but if you do want the formatting I recommend you keep those characters unless you want to reformat the tweets.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…