1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Doc: Allow translating website

This commit is contained in:
Laurent Cozic
2022-11-22 18:16:57 +00:00
parent 07fc6aa647
commit c990e81def
29 changed files with 796 additions and 146 deletions

View File

@@ -37,7 +37,12 @@ class HtmlUtils {
for (const n in attr) {
if (!attr.hasOwnProperty(n)) continue;
output.push(`${n}="${htmlentities(attr[n])}"`);
if (!attr[n]) {
output.push(n);
} else {
output.push(`${n}="${htmlentities(attr[n])}"`);
}
}
return output.join(' ');