summaryrefslogtreecommitdiff
path: root/Cydia.app
diff options
context:
space:
mode:
Diffstat (limited to 'Cydia.app')
-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));
}
};