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:
Eric Lippmann 2016-07-21 10:56:32 +02:00
parent 42991b0756
commit 733696864e

View File

@ -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>';
}
/**