Search code examples
htmljekyllblogs

Jekyll - How do you get rendered content of posts?


I need to get the rendered content (without html tags) of some posts in Jekyll. When I do 'post.content' It returns the full HTML instead of the rendered text. How do I do this?


Solution

  • You can use strip_html filter {{ post.content | strip_html }}