从MongoDB检索HTML以在模板中使用

从MongoDB检索HTML以在模板中使用,mongodb,meteor,handlebars.js,Mongodb,Meteor,Handlebars.js,我是Meteor.js和MongoDB的新手,所以这个问题可能有一个明显的解决方案,我没有找到,但到目前为止,我的搜索结果一无所获 我的第一个流星项目是一个非常简单的博客。在MongoDB中,我有以下内容: Blog.insert({ author: "Name Here", title: "Title Here", headerHTML: "This is my <b>very</b> first blog post.",

我是Meteor.js和MongoDB的新手,所以这个问题可能有一个明显的解决方案,我没有找到,但到目前为止,我的搜索结果一无所获

我的第一个流星项目是一个非常简单的博客。在MongoDB中,我有以下内容:

    Blog.insert({
      author: "Name Here",
      title: "Title Here",
      headerHTML: "This is my <b>very</b> first blog post.",
      bodyHTML: "What drives us to <em>solve</em> these types of problems?",
      date: new Date()
    });
最后,在我的HTML中,我有以下内容

    ...
    <div class="row">
        {{> posts}}
    </div>
    ...
    <template name="posts">
      <div class="span12">
      {{#each entry}}
        {{author}}
        {{date}}
        {{title}}
        {{headerHTML}}
        {{bodyHTML}}
      {{/each}}
      </div>
    </template>
。。。
{{>posts}
...
{{{#每个条目}
{{作者}
{{date}}
{{title}}
{{headerHTML}}
{{bodyHTML}}
{{/每个}}
当我让应用程序运行{{headerHTML}}和{{bodyHTML}指定的部分时,返回文本字符串。因此,您可以在文本中看到标记。我想要的是字符串被视为HTML并显示为HTML。所以一些文字将被加粗,我可以有链接,等等。。。有人能扔我的路吗


我尝试过将把手放在各种HTML标记中(比如
{{bodyHML}

{/code>),但运气不好。

使用三个括号
{{{}}
告诉meteor不要逃避HTML字符串

 {{{headerHTML}}}
 {{{bodyHTML}}}

那太光荣了!
 {{{headerHTML}}}
 {{{bodyHTML}}}