mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-55: Render <img> tags as their alt text.
This commit is contained in:
@@ -255,6 +255,10 @@ angular.module('clipboard').factory('clipboardService', ['$injector',
|
|||||||
else if (current.nodeName === 'BR')
|
else if (current.nodeName === 'BR')
|
||||||
currentBlock += '\n';
|
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
|
// For all other nodes, handling depends on whether they are
|
||||||
// block-level elements
|
// block-level elements
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user