mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Wrap zero width space in hidden span
This should fix copy and paste issues but still help browsers to nicely break lines in plugin output. refs #12134
This commit is contained in:
parent
42991b0756
commit
733696864e
@ -66,7 +66,12 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
||||
{
|
||||
// This is actually not required as the value is constant,
|
||||
// but as its (visual) length is 0, it's likely to be mixed up with the empty string.
|
||||
$this->zeroWidthSpace = html_entity_decode($this->zeroWidthSpaceEnt, ENT_NOQUOTES, 'UTF-8');
|
||||
$this->zeroWidthSpace = '<span style="visibility:hidden; display:none;">'
|
||||
. html_entity_decode($this->zeroWidthSpaceEnt, ENT_NOQUOTES, 'UTF-8')
|
||||
. '</span>';
|
||||
$this->zeroWidthSpaceEnt = '<span style="visibility:hidden; display:none;">'
|
||||
. $this->zeroWidthSpaceEnt
|
||||
. '</span>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user