Merge branch 'MDL-58409-master_needs_clean_in_autocomplete_element' of https://github...
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 14 Aug 2018 15:29:48 +0000 (17:29 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 14 Aug 2018 15:29:48 +0000 (17:29 +0200)
lib/amd/build/form-autocomplete.min.js
lib/amd/src/form-autocomplete.js

index c59dc5d..7755fdc 100644 (file)
Binary files a/lib/amd/build/form-autocomplete.min.js and b/lib/amd/build/form-autocomplete.min.js differ
index afe6e3f..b4c0053 100644 (file)
@@ -409,7 +409,7 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification']
                 // Only create the item if it's new.
                 if (!found) {
                     var option = $('<option>');
-                    option.append(tag);
+                    option.append(document.createTextNode(tag));
                     option.attr('value', tag);
                     originalSelect.append(option);
                     option.prop('selected', true);