]> git.saurik.com Git - cydia.git/commitdiff
No longer support HTML Description: fields.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 14 Oct 2010 08:08:13 +0000 (01:08 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 14 Oct 2010 08:08:13 +0000 (01:08 -0700)
Cydia.app/package.js

index 6e091cf29f28bccd4377787c0e5adfb4d6c773fd..b9f85ff0692b225059ee34cc6cf2e6a43adc48d1 100644 (file)
@@ -195,19 +195,23 @@ var special_ = function () {
     }*/
 
     var depiction = package.depiction;
-    if (depiction == null)
-        $(".depiction").addClass("deleted");
-    else {
+    if (depiction != null) {
         $(".description").addClass("deleted");
         $("#depiction-src").src(depiction);
-    }
+    } else {
+        $(".depiction").addClass("deleted");
 
-    var description = package.longDescription;
-    if (description == null)
-        description = package.shortDescription;
-    else
-        description = description.replace(/\n/g, "<br/>");
-    $("#description").html(description);
+        var description = package.longDescription;
+        if (description == null)
+            description = package.shortDescription;
+
+        if (description == null)
+            $(".description").addClass("deleted");
+        else {
+            description = $.xml(description).replace(/\n/g, "<br/>");
+            $("#description").html(description);
+        }
+    }
 
     var homepage = package.homepage;
     if (homepage == null)
@@ -279,7 +283,7 @@ var special_ = function () {
         if (description == null)
             $(".source-description").addClass("deleted");
         else
-            $("#source-description").html(description);
+            $("#source-description").html($.xml(description));
     }
 };