我正在使用聚合物 jsonp 来执行 JSONP 请求,但响应有时包含 html。
例如,假设 post.content 是"<strong>Foo</strong> bar",我如何"Foo"以粗体显示 {{post.content}} ?
<polymer-element name="feed-element" attributes="">
  <template>
    <template repeat="{{post in posts.feed.entry}}">
      <p>{{post.content}}</p>
    </template>
    <polymer-jsonp url="url" response="{{posts}}"></polymer-jsonp>
  </template>
  <script>
    Polymer('feed-element', {
      created: function() { },
      attached: function() { },
      detached: function() { },
      attributeChanged: function(attrName, oldVal, newVal) { }
    });
  </script>
</polymer-element>