use proper typographical × instead of x

This commit is contained in:
Jeff Atwood 2018-12-24 20:33:17 -08:00
parent a8a0f97157
commit a74e49c87c
2 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,6 @@ export default function($elem) {
escapeExpression(item.el.attr("title")),
$("span.informations", item.el)
.text()
.replace("x", "×")
];
if (
!Discourse.SiteSettings.prevent_anons_from_downloading_files ||

View File

@ -421,7 +421,7 @@ class CookedPostProcessor
img.add_next_sibling(meta)
filename = get_filename(upload, img["src"])
informations = "#{original_width}x#{original_height}"
informations = "#{original_width}×#{original_height}"
informations << " #{number_to_human_size(upload.filesize)}" if upload
a["title"] = CGI.escapeHTML(img["title"] || filename)