You've already forked joplin
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:
@@ -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(' ');
|
||||
|
||||
Reference in New Issue
Block a user