Nair
Nair

Reputation: 7458

Is it possible to display html content stored in backend properly in Meteor?

I have couple of html documents stored in the backend mongo database. When I tried to render it with {{> pageContent}}, it showed in plain text with all html attributes. Is it possible to send it to Meteor client in such a way it can redner it as clear html?

Thanks

Upvotes: 0

Views: 43

Answers (1)

Tarang
Tarang

Reputation: 75945

Use three brackets:

{{{pageContent}}}

where pageContent is the raw html from your mongo database through a helper

Upvotes: 2

Related Questions