Index: trunk/FACT++/www/smartfact/index.js
===================================================================
--- trunk/FACT++/www/smartfact/index.js	(revision 13874)
+++ trunk/FACT++/www/smartfact/index.js	(revision 13875)
@@ -163,4 +163,5 @@
 function valid(str) { if (str==undefined) return false; if (str.length==0) return false; return true;}
 function isSliding() { var z = $("body").getAttribute("data-visible"); return $("table"+z).offsetLeft!=0; }
+function htmlDecode(input) { var e = document.createElement('div'); e.innerHTML = input; return e.childNodes[0].nodeValue; }
 
 function cycleCol(el)
@@ -1274,9 +1275,9 @@
     var umax = data[2];
 
-    var unit = canv.getAttribute("data-data");//.split("/");
-    unit = unit.replace("&deg;",   "\u00B0");
-    unit = unit.replace("&micro;", "\u00B5");
-    unit = unit.replace("&sup2;",  "\u00B2");
-    unit = unit.replace("&sup3;",  "\u00B3");
+    var unit = htmlDecode(canv.getAttribute("data-data"));
+    //unit = unit.replace("&deg;",   "\u00B0");
+    //unit = unit.replace("&micro;", "\u00B5");
+    //unit = unit.replace("&sup2;",  "\u00B2");
+    //unit = unit.replace("&sup3;",  "\u00B3");
 
     var min = data[3]+unit
@@ -1318,9 +1319,10 @@
 function drawGraph(canv, vals, data)
 {
-    var unit = canv.getAttribute("data-data");//.split("/");
-    unit = unit.replace("&deg;",   "\u00B0");
-    unit = unit.replace("&micro;", "\u00B5");
-    unit = unit.replace("&sup2;",  "\u00B2");
-    unit = unit.replace("&sup3;",  "\u00B3");
+    var unit = htmlDecode(canv.getAttribute("data-data"));//.split("/");
+
+    //unit = unit.replace("&deg;",   "\u00B0");
+    //unit = unit.replace("&micro;", "\u00B5");
+    //unit = unit.replace("&sup2;",  "\u00B2");
+    //unit = unit.replace("&sup3;",  "\u00B3");
 
     var umin = vals[1]+unit;
