Commits

Michael Manfre committed fb67e81

Fixed #94 - changed javascript usage of `text()` to `html()` to prevent escaping of passed HTML.

  • Participants
  • Parent commits 8f350b2

Comments (0)

Files changed (1)

selectable/static/selectable/js/jquery.dj.selectable.js

             /* Add new deck list item from a given hidden input */
             var self = this;
             var li = $('<li>')
-            .text($(input).attr('title'))
+            .html($(input).attr('title'))
             .addClass('selectable-deck-item');
             var item = {element: self.element, input: input, wrapper: li, deck: self.deck};
             if (self._trigger("add", null, item) === false) {
                 $input.removeClass("ui-corner-all")
                 .addClass("ui-corner-left ui-combo-input");
                 // Add show all items button
-                $("<a>").text("&nbsp;").attr("tabIndex", -1).attr("title", "Show All Items")
+                $("<a>").html("&nbsp;").attr("tabIndex", -1).attr("title", "Show All Items")
                 .insertAfter($input)
                 .button({
                     icons: {