【发布时间】:2018-02-24 14:04:19
【问题描述】:
我需要在 Jekyll 中获取一些帖子的渲染内容(没有 html 标签)。当我执行“post.content”时,它会返回完整的 HTML 而不是呈现的文本。我该怎么做?
【问题讨论】:
我需要在 Jekyll 中获取一些帖子的渲染内容(没有 html 标签)。当我执行“post.content”时,它会返回完整的 HTML 而不是呈现的文本。我该怎么做?
【问题讨论】:
你可以使用strip_html过滤{{ post.content | strip_html }}
【讨论】: