misc.search: trim titles
This commit is contained in:
parent
942de91a68
commit
c7e110a430
1 changed files with 3 additions and 3 deletions
|
@ -590,9 +590,9 @@ search.callback = async function (msg, line, args, {results = 2}) {
|
||||||
);
|
);
|
||||||
out += `\n<${encodeURI(result.special_response.source)}>`;
|
out += `\n<${encodeURI(result.special_response.source)}>`;
|
||||||
} else {
|
} else {
|
||||||
out += `**${safeString(parseHtmlEntities(result.title))}** - <${encodeURI(
|
out += `**${safeString(
|
||||||
result.url
|
parseHtmlEntities(result.title)
|
||||||
)}>`;
|
).trim()}** - <${encodeURI(result.url)}>`;
|
||||||
out += `\n> ${safeString(parseHtmlEntities(result.description))}`;
|
out += `\n> ${safeString(parseHtmlEntities(result.description))}`;
|
||||||
}
|
}
|
||||||
out += "\n\n";
|
out += "\n\n";
|
||||||
|
|
Loading…
Reference in a new issue