diff --git a/script/directives.js b/script/directives.js index ff05f267e8..51c0dc170c 100644 --- a/script/directives.js +++ b/script/directives.js @@ -98,7 +98,7 @@ html = html.replace(userHighlight, "@"+userName+""); - html = html.replace(' href','target="'+linktarget+'" href'); + html = html.replace(' href',' target="'+linktarget+'" href'); element.html(html); }); } @@ -109,7 +109,7 @@ return function(input){ var html = md.toHtml(input); - html = html.replace(' href','target="_self" href'); + html = html.replace(' href',' target="_self" href'); return html; }; @@ -125,4 +125,4 @@ habitrpg.directive('questRewards', ['$rootScope', function($rootScope){ scope.quest = $rootScope.Content.quests[attrs.key]; } } -}]); \ No newline at end of file +}]);