GUACAMOLE-55: Strip any images which may be present prior to assigning text content.
This commit is contained in:
1 parent
c68cedd652
commit
6ee4264a21
1 file changed
+3
@@ -306,6 +306,9 @@ angular.module('clipboard').factory('clipboardService', ['$injector',
|
||||
*/
|
||||
service.setTextContent = function setTextContent(element, text) {
|
||||
|
||||
// Strip out any images
|
||||
$(element).find('img').remove();
|
||||
|
||||
// Reset text content only if doing so will actually change the content
|
||||
if (service.getTextContent(element) !== text)
|
||||
element.textContent = text;
|
||||
|
||||
Reference in new issue
Block a user