We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f722208 commit e79e41aCopy full SHA for e79e41a
types/LongText.php
@@ -25,7 +25,7 @@ class LongText extends AbstractMultiBaseType {
25
*/
26
public function renderValue($value, \Doku_Renderer $R, $mode) {
27
if ($mode === 'xhtml') {
28
- $valueWithBR = str_replace("\n", '<br>', hsc($value));
+ $valueWithBR = nl2br(hsc($value));
29
$R->doc .= hsc($this->config['prefix']) . $valueWithBR . hsc($this->config['postfix']);
30
} else {
31
$R->cdata($this->config['prefix'] . $value . $this->config['postfix']);
0 commit comments