summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-10-14 01:08:13 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2010-10-14 01:08:13 -0700
commitb9ada469088990a084f1bf0bebe5f7cc7dce4148 (patch)
tree725d8fd881edca59bc8b5e4ff6eb62d3893323a4
parent6f6d34ec848ffd4ba05658c776de501ab7455705 (diff)
No longer support HTML Description: fields.
-rw-r--r--Cydia.app/package.js26
1 files changed, 15 insertions, 11 deletions
diff --git a/Cydia.app/package.js b/Cydia.app/package.js
index 6e091cf..b9f85ff 100644
--- a/Cydia.app/package.js
+++ b/Cydia.app/package.js
@@ -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));
}
};