mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Fix parsing of html entities
This commit is contained in:
parent
cb8f84dc8a
commit
82d3342ab3
1 changed files with 2 additions and 2 deletions
|
|
@ -36,8 +36,8 @@ export const isRemoved = textBody => textBody === '\\[removed\\]' || textBody ==
|
|||
// Default thumbnails for reddit threads
|
||||
export const redditThumbnails = ['self', 'default', 'image', 'nsfw']
|
||||
|
||||
// Parse comments
|
||||
export const parse = text => markdown.render(text)
|
||||
// Parse comments (see https://www.reddit.com/dev/api/#response_body_encoding)
|
||||
export const parse = text => markdown.render(text.replaceAll('<', '<').replaceAll('>', '>').replaceAll('&', '&'))
|
||||
|
||||
// UTC to "Reddit time format" (e.g. 5 hours ago, just now, etc...)
|
||||
export const prettyDate = createdUTC => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue