Reputation: 399
i use the markdown module in node.js , when i get some text from mongodb , i turn it to markdown :
newsList.forEach(function (news) {
news.publishContent = markdown.toHTML(news.publishContent);
})
and send the data to the html via angular :
<p ng-bind="nl.publishContent" ng-show="!isEdit"></p>
but the result in the html page is
the html elements doesn't resolve into html elements , they are toString into the html , how to make it resolve into html ?
Upvotes: 2
Views: 259