Browse Source

Fix attribute string formatting (#868)

Lutz Roeder 4 years ago
parent
commit
64066fe5d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/view-sidebar.js

+ 1 - 1
source/view-sidebar.js

@@ -527,7 +527,7 @@ class NodeAttributeView {
                 if (content && content.length > 1000) {
                     content = content.substring(0, 1000) + '\u2026';
                 }
-                if (content && typeof text === 'string') {
+                if (content && typeof content === 'string') {
                     content = content.split('<').join('&lt;').split('>').join('&gt;');
                 }
                 const line = this._host.document.createElement('div');