update application and repository views to set <meta> description to improve search results
This commit is contained in:
parent
21ecc2eadd
commit
a9c2ea608d
7 changed files with 65 additions and 52 deletions
|
@ -75,6 +75,11 @@ angular.module('quay').factory('UtilService', ['$sanitize', 'markdownConverterFa
|
|||
return '';
|
||||
};
|
||||
|
||||
utilService.getFirstMarkdownLineAsString = function(commentString) {
|
||||
return utilService.getFirstMarkdownLineAsText(commentString, false).replace('</p>', '')
|
||||
.replace('<p>', '');
|
||||
};
|
||||
|
||||
utilService.escapeHtmlString = function(text) {
|
||||
var textStr = (text || '').toString();
|
||||
var adjusted = textStr.replace(/&/g, "&")
|
||||
|
|
Reference in a new issue