From 733696864e832d73c1ac383aa48fcd8c0b341462 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 21 Jul 2016 10:56:32 +0200 Subject: [PATCH] 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 --- .../monitoring/application/views/helpers/PluginOutput.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php index 215ad5ad8..404c9159c 100644 --- a/modules/monitoring/application/views/helpers/PluginOutput.php +++ b/modules/monitoring/application/views/helpers/PluginOutput.php @@ -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 = '' + . html_entity_decode($this->zeroWidthSpaceEnt, ENT_NOQUOTES, 'UTF-8') + . ''; + $this->zeroWidthSpaceEnt = '' + . $this->zeroWidthSpaceEnt + . ''; } /**