Skip to content

Commit

Permalink
Merge pull request #7014 from RocketChat/parse-admin-html-descriptions
Browse files Browse the repository at this point in the history
[FIX] Parse HTML on admin setting's descriptions
  • Loading branch information
rodrigok authored May 31, 2017
2 parents df71c2b + a54ff14 commit 90ef85f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/rocketchat-markdown/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ RocketChat.callbacks.add('renderMessage', MarkdownMessage, RocketChat.callbacks.

if (Meteor.isClient) {
Blaze.registerHelper('RocketChatMarkdown', text => Markdown.parse(text));
Blaze.registerHelper('RocketChatMarkdownUnescape', text => Markdown.parseNotEscaped(text));
}
2 changes: 1 addition & 1 deletion packages/rocketchat-ui-admin/client/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ <h2>
{{/if}}

{{#if description}}
<div class="settings-description">{{{RocketChatMarkdown description}}}</div>
<div class="settings-description">{{{RocketChatMarkdownUnescape description}}}</div>
{{/if}}
{{#if alert}}
<div class="settings-alert pending-color pending-background pending-border"><i class="icon-attention secondary-font-color"></i>{{{_ alert}}}</div>
Expand Down

0 comments on commit 90ef85f

Please sign in to comment.