Fix evaluation of post content by m.trust() (#24)

This commit is contained in:
Sami Mazouz 2021-01-22 19:53:11 +01:00 committed by GitHub
parent 9b65d4cbc8
commit 768fc0d653

View File

@ -21,7 +21,8 @@ export default function addStickyControl() {
if (firstPost) { if (firstPost) {
const excerpt = truncate(firstPost.contentPlain(), 175); const excerpt = truncate(firstPost.contentPlain(), 175);
items.add('excerpt', m.trust(excerpt), -100); // Wrapping in <div> because ItemList entries need to be vnodes
items.add('excerpt', <div>{excerpt}</div>, -100);
} }
} }
}); });