feed2toot should render HTML as text
I inject my links (from a Shaarli instance) in mastodon using this excellent script. However, my description RSS field contains some HTML, like in this example :
<item>
<title>Single Source Information: An Agile Best Practice for Effective Documentation</title>
<guid isPermaLink="false">https://nicolas-delsaux.hd.free.fr/Shaarli/?Yr0rnA</guid>
<link>http://agilemodeling.com/essays/singleSourceInformation.htm</link>
<pubDate>Tue, 02 May 2017 12:28:17 +0200</pubDate>
<atom:modified>2017-05-02T12:28:17+02:00</atom:modified>
<description><![CDATA[A lire en détail, j'ai l'impression que ça colle avec certaines idées de Simon Brown et autres<br>— <a href="https://nicolas-delsaux.hd.free.fr/Shaarli/?Yr0rnA" title="Permalink">Permalink</a>]]></description>
<category domain="https://nicolas-delsaux.hd.free.fr/Shaarli/?searchtags=">@toread</category>
<category domain="https://nicolas-delsaux.hd.free.fr/Shaarli/?searchtags=">architecture</category>
<category domain="https://nicolas-delsaux.hd.free.fr/Shaarli/?searchtags=">documentation</category>
</item>
When I use feed2toot with the {summary} RSS tag, the whole description is copied "as is" in the summary tag. As a consequence, mastodon shows
A lire en détail, j'ai l'impression que ça colle avec certaines idées de Simon Brown et autres<br>— <a href="https://nicolas-delsaux.hd.free.fr/Shaarli/?Yr0rnA" title="Permalink">Permalink</a>
with the tags displayed. I would prefer to have
A lire en détail, j'ai l'impression que ça colle avec certaines idées de Simon Brown et autres Permalink
It seems to be possible to do so using BeautifulSoup (but i don't know enough Python to be sure)