luci-app-mwan3: fix markup which is not valid XHTML
authorJo-Philipp Wich <jo@mein.io>
Fri, 8 Oct 2021 17:40:29 +0000 (19:40 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 8 Oct 2021 17:53:09 +0000 (19:53 +0200)
XHTML does not specify `&nbsp;`, use `&#160;` instead.

Fixes: #5421
Fixes: f5f6b3e4f8 ("luci-app-mwan3: convert to JS")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/status/overview.js

index 14e0b0252b5e1f8d9a49cf38b18c53d556f3bc0a..c60ac7afa268b8dc4a03dd680ea5161e36e1f7a2 100644 (file)
@@ -61,11 +61,11 @@ function renderMwan3Status(status) {
                }
 
                statusview += '<div class="alert-message %h">'.format(css);
-               statusview += '<div><strong>%h:&nbsp;</strong>%h</div>'.format(_('Interface'), iface);
-               statusview += '<div><strong>%h:&nbsp;</strong>%h</div>'.format(_('Status'), state);
+               statusview += '<div><strong>%h:&#160;</strong>%h</div>'.format(_('Interface'), iface);
+               statusview += '<div><strong>%h:&#160;</strong>%h</div>'.format(_('Status'), state);
 
                if (time)
-                       statusview += '<div><strong>%h:&nbsp;</strong>%h</div>'.format(tname, time);
+                       statusview += '<div><strong>%h:&#160;</strong>%h</div>'.format(tname, time);
 
                statusview += '</div>';
        }