forked from indymedia/epicyon
Remove tags if there is an image in the rss description
parent
82a89aa216
commit
e13cec3bbc
|
@ -133,6 +133,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
||||||
translate['Read more...'] + '</a>'
|
translate['Read more...'] + '</a>'
|
||||||
|
|
||||||
# remove image dimensions
|
# remove image dimensions
|
||||||
|
if '<img' in rssDescription:
|
||||||
rssDescription = removeHtmlTag(rssDescription, 'width')
|
rssDescription = removeHtmlTag(rssDescription, 'width')
|
||||||
rssDescription = removeHtmlTag(rssDescription, 'height')
|
rssDescription = removeHtmlTag(rssDescription, 'height')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue