diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako --- a/rhodecode/templates/codeblocks/diffs.mako +++ b/rhodecode/templates/codeblocks/diffs.mako @@ -909,6 +909,8 @@ def get_comments_for(diff_type, comments }; var animateText = $.debounce(100, function(fPath, anchorId) { + fPath = Select2.util.escapeMarkup(fPath); + // animate setting the text var callback = function () { $('.fpath-placeholder-text').animate({'opacity': 1.00}, 200)