diff --git a/script/directives.js b/script/directives.js index 07fd3596cc..2b5f86d61d 100644 --- a/script/directives.js +++ b/script/directives.js @@ -99,6 +99,16 @@ } }; }); + + habitrpg.filter('markdown', function() { + return function(input){ + var html = md.toHtml(input); + + html = html.replace(' href','target="_self" href'); + + return html; + }; + }); })() habitrpg.directive('questRewards', ['$rootScope', function($rootScope){