Unescape speacker text

main
Bob Mottram 2021-03-01 19:28:38 +00:00
parent 12f4efc47b
commit 3807077dae
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import json
import os
import datetime
import time
import html
import urllib.parse
from linked_data_sig import verifyJsonSignature
from utils import getDisplayName
@ -2154,7 +2155,9 @@ def _updateSpeaker(baseDir: str, nickname: str, domain: str,
speakerFilename = \
baseDir + '/accounts/' + nickname + '@' + domain + '/speaker.json'
content = urllib.parse.unquote_plus(postJsonObject['object']['content'])
content = html.unescape(content)
content = removeHtml(htmlReplaceQuoteMarks(content))
content = content.replace('"', '"')
summary = ''
if postJsonObject['object'].get('summary'):
if isinstance(postJsonObject['object']['summary'], str):