add decodeEntities
authoralexlamsl <alexlamsl@gmail.com>
Fri, 8 Apr 2016 09:04:23 +0000 (17:04 +0800)
committeralexlamsl <alexlamsl@gmail.com>
Fri, 8 Apr 2016 09:04:23 +0000 (17:04 +0800)
fix unsafe CSS class placement
reset lint reports when disabled

assets/master.js
index.html

index 22f5064..d0bc95a 100644 (file)
@@ -79,6 +79,9 @@
       if (lint) {
         lint.populate(byId('report'));
       }
+      else {
+        byId('report').innerHTML = '';
+      }
     }
     catch (err) {
       byId('output').value = '';
index e612a33..e634967 100644 (file)
@@ -42,8 +42,8 @@
             </span>
           </li>
           <li>
-            <input type="checkbox" id="collapseInlineTagWhitespace" class="unsafe">
-            <label for="collapseInlineTagWhitespace">
+            <input type="checkbox" id="collapseInlineTagWhitespace">
+            <label for="collapseInlineTagWhitespace" class="unsafe">
               Collapse inline tag whitespace
             </label>
             <span class="quiet short">
               Must be used in conjunction with <code>collapseWhitespace=true</code>
             </span>
           </li>
+          <li>
+            <input type="checkbox" id="decodeEntities" checked>
+            <label for="decodeEntities">
+              Decode Entity Characters
+            </label>
+            <span class="quiet short">
+              Use direct Unicode characters whenever possible
+            </span>
+          </li>
           <li>
             <input type="checkbox" id="html5" checked>
             <label for="html5">
             </span>
           </li>
           <li>
-            <input type="checkbox" id="preventAttributesEscaping" class="unsafe">
-            <label for="preventAttributesEscaping">
+            <input type="checkbox" id="preventAttributesEscaping">
+            <label for="preventAttributesEscaping" class="unsafe">
               Prevent attributes escaping
             </label>
             <span class="quiet short">
             </span>
           </li>
           <li>
-            <input type="checkbox" id="removeEmptyElements" class="unsafe">
-            <label for="removeEmptyElements">
+            <input type="checkbox" id="removeEmptyElements">
+            <label for="removeEmptyElements" class="unsafe">
               Remove empty elements
             </label>
             <span class="quiet short">
             </span>
           </li>
           <li>
-            <input type="checkbox" id="removeTagWhitespace" class="unsafe" checked>
-            <label for="removeTagWhitespace">
+            <input type="checkbox" id="removeTagWhitespace" checked>
+            <label for="removeTagWhitespace" class="unsafe">
               Remove tag whitespace
             </label>
             <span class="quiet short">
             </span>
           </li>
           <li>
-            <input type="checkbox" id="sortAttributes" class="unsafe" checked>
-            <label for="sortAttributes">
+            <input type="checkbox" id="sortAttributes" checked>
+            <label for="sortAttributes" class="unsafe">
               Sort attributes
             </label>
             <span class="quiet short">
             </span>
           </li>
           <li>
-            <input type="checkbox" id="sortClassName" class="unsafe" checked>
-            <label for="sortClassName">
+            <input type="checkbox" id="sortClassName" checked>
+            <label for="sortClassName" class="unsafe">
               Sort class name
             </label>
             <span class="quiet short">