mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 11:36:34 +00:00
Escape tweet text
This commit is contained in:
parent
6f0452621e
commit
cd4e873a45
1 changed files with 14 additions and 15 deletions
|
@ -92,12 +92,12 @@
|
||||||
#
|
#
|
||||||
#proc renderTweet*(tweet: Tweet; class=""): string =
|
#proc renderTweet*(tweet: Tweet; class=""): string =
|
||||||
<div class="${class}">
|
<div class="${class}">
|
||||||
<div class="status-el">
|
<div class="status-el">
|
||||||
<div class="status-body">
|
<div class="status-body">
|
||||||
${renderHeading(tweet)}
|
${renderHeading(tweet)}
|
||||||
<div class="status-content-wrapper">
|
<div class="status-content-wrapper">
|
||||||
<div class="status-content media-body">
|
<div class="status-content media-body">
|
||||||
${linkifyText(tweet.text)}
|
${linkifyText(xmltree.escape(tweet.text))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
#if tweet.photos.len > 0:
|
#if tweet.photos.len > 0:
|
||||||
|
@ -109,6 +109,5 @@
|
||||||
#end if
|
#end if
|
||||||
${renderStats(tweet)}
|
${renderStats(tweet)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
#end proc
|
#end proc
|
||||||
|
|
Loading…
Reference in a new issue