misc.search: trim titles

This commit is contained in:
Cynthia Foxwell 2024-04-04 14:40:01 -06:00
parent 942de91a68
commit c7e110a430

View file

@ -590,9 +590,9 @@ search.callback = async function (msg, line, args, {results = 2}) {
);
out += `\n<${encodeURI(result.special_response.source)}>`;
} else {
out += `**${safeString(parseHtmlEntities(result.title))}** - <${encodeURI(
result.url
)}>`;
out += `**${safeString(
parseHtmlEntities(result.title)
).trim()}** - <${encodeURI(result.url)}>`;
out += `\n> ${safeString(parseHtmlEntities(result.description))}`;
}
out += "\n\n";