Remove html from metadata

merge-requests/30/head
Bob Mottram 2021-05-16 12:16:50 +01:00
parent 797bd5720a
commit 2a3ad46c05
1 changed files with 4 additions and 2 deletions

View File

@ -757,14 +757,16 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str,
' "addressLocality": "' + city + '"' + addComma + '\n' + \
countryMarkup + \
' },\n'
description = removeHtml(actorJson['summary'])
nameStr = removeHtml(actorJson['name'])
personMarkup = \
' <script type="application/ld+json">\n' + \
' {\n' + \
' "@context" : "http://schema.org",\n' + \
' "@type" : "Person",\n' + \
' "name": "' + actorJson['name'] + '",\n' + \
' "name": "' + nameStr + '",\n' + \
' "image": "' + actorJson['icon']['url'] + '",\n' + \
' "description": "' + actorJson['summary'] + '",\n' + \
' "description": "' + description + '",\n' + \
cityMarkup + skillsMarkup + \
' "url": "' + actorJson['id'] + '"\n' + \
' }\n' + \