diff --git a/src/Component/Helper/FillPdfMappingHelper.php b/src/Component/Helper/FillPdfMappingHelper.php
index 3ba02d397b80ec180ec3c7350fda72d5efbf9e3e..776716718adcc15e32770e1d4f5ec94107da3044 100644
--- a/src/Component/Helper/FillPdfMappingHelper.php
+++ b/src/Component/Helper/FillPdfMappingHelper.php
@@ -32,8 +32,7 @@ class FillPdfMappingHelper {
           $split = explode('|', $replacement);
           // Sometimes it isn't; don't know why.
           if (count($split) == 2) {
-            $return[$split[0]] = preg_replace('|<br />|', '
-', $split[1]);
+            $return[$split[0]] = preg_replace('|<br />|', "\n", $split[1]);
           }
         }
       }
diff --git a/src/TokenResolver.php b/src/TokenResolver.php
index 9428f4f942698472198886bec73add24f797665d..88225a298c09280527dea4d21d7ca270d482cfb8 100644
--- a/src/TokenResolver.php
+++ b/src/TokenResolver.php
@@ -122,8 +122,7 @@ class TokenResolver implements TokenResolverInterface {
     $resolved_string = str_replace(array_keys($replacements), array_values($replacements), $text);
 
     // Replace <br /> occurrences with newlines.
-    $resolved_string = preg_replace('|<br />|', '
-', $resolved_string);
+    $resolved_string = preg_replace('|<br />|', "\n", $resolved_string);
 
     // Apply transformation replacements.
     if (isset($options['replacements'][$resolved_string])) {