Skip to content

Commit 74d1a11

Browse files
author
mhirdes
committed
[BUGFIX] Unnecessary p-tags added to info window
1 parent bf82b23 commit 74d1a11

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Classes/Domain/Model/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public function setShadowHeight($shadowHeight) {
473473
* @return \string $infoWindowContent
474474
*/
475475
public function getInfoWindowContent() {
476-
return preg_replace("/\r\n|\r/", '</p><p class="bodytext">', $this->infoWindowContent);
476+
return $this->infoWindowContent;
477477
}
478478

479479
/**

Classes/ViewHelpers/EscapeViewHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ class EscapeViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelp
5656
*/
5757
public function render() {
5858
$value = $this->renderChildren();
59-
60-
return str_replace("'", "\'", $value);
59+
return str_replace("'", "\'", preg_replace("/\r\n|\r|\n/", "", $value));
6160
}
6261
}
6362

0 commit comments

Comments
 (0)