From 24612ce8785b01bf9b1e0b87e179418b2c9b0f0c Mon Sep 17 00:00:00 2001 From: Javier Date: Wed, 19 Feb 2020 18:32:30 -0600 Subject: [PATCH] Get text instead of html for callback result (#214) --- src/jquery.jeditable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.jeditable.js b/src/jquery.jeditable.js index bd6ce3e..f3b0e65 100644 --- a/src/jquery.jeditable.js +++ b/src/jquery.jeditable.js @@ -378,7 +378,7 @@ if (false !== complete) { $(self).html(value); self.editing = false; - callback.apply(self, [self.innerHTML, settings]); + callback.apply(self, [self.innerText, settings]); if (!$.trim($(self).html())) { $(self).html(settings.placeholder); }