GUACAMOLE-55: Render <img> tags as their alt text.

This commit is contained in:
Michael Jumper
2016-06-29 16:31:18 -07:00
parent 6ee4264a21
commit 3f372cce68

View File

@@ -255,6 +255,10 @@ angular.module('clipboard').factory('clipboardService', ['$injector',
else if (current.nodeName === 'BR')
currentBlock += '\n';
// Render <img> as alt text, if available
else if (current.nodeName === 'IMG')
currentBlock += current.getAttribute('alt') || '';
// For all other nodes, handling depends on whether they are
// block-level elements
else {