зеркало из https://github.com/mozilla/treeherder.git
Bug 1361568 - Unescape commit messages used in the tooltips (#2444) r=camd
* Bug 1361568 - Unescape commit messages used in the tooltips
This commit is contained in:
Родитель
89e648b148
Коммит
33d2a877d8
|
@ -23,8 +23,9 @@ const RevisionItem = (props) => {
|
|||
|
||||
if (userTokens.length > 1) email = userTokens[1];
|
||||
initialsHTML = { __html: props.initialsFilter(name) };
|
||||
const comment = props.revision.comments.split('\n')[0];
|
||||
|
||||
escapedComment = _.escape(props.revision.comments.split('\n')[0]);
|
||||
escapedComment = _.escape(comment);
|
||||
escapedCommentHTML = { __html: props.linkifyBugsFilter(escapedComment) };
|
||||
|
||||
tags = '';
|
||||
|
@ -44,7 +45,7 @@ const RevisionItem = (props) => {
|
|||
</span>
|
||||
<span title={`${name}: ${email}`}
|
||||
dangerouslySetInnerHTML={initialsHTML} />
|
||||
<span title={escapedComment}>
|
||||
<span title={comment}>
|
||||
<span className="revision-comment">
|
||||
<em dangerouslySetInnerHTML={escapedCommentHTML} />
|
||||
</span>
|
||||
|
|
Загрузка…
Ссылка в новой задаче