diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 7087480..a38f34d 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -977,6 +977,10 @@ function t($string, array $args = array(), array $options = array()) {
   return \Drupal::translation()->translate($string, $args, $options);
 }
 
+
+function drupal_raw_filter($string) {
+  return SafeMarkup::create($string);
+}
 /**
  * Formats a string for HTML display by replacing variable placeholders.
  *
diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php
index 4cb31ca..b3bdecd 100644
--- a/core/lib/Drupal/Core/Template/TwigExtension.php
+++ b/core/lib/Drupal/Core/Template/TwigExtension.php
@@ -45,7 +45,7 @@ public function getFilters() {
       // "raw" filter and give it identifiable names. These filters should only
       // be used in "trans" tags.
       // @see TwigNodeTrans::compileString()
-      new \Twig_SimpleFilter('passthrough', 'twig_raw_filter'),
+      new \Twig_SimpleFilter('passthrough', 'drupal_raw_filter'),
       new \Twig_SimpleFilter('placeholder', 'twig_raw_filter'),
 
       // Array filters.
diff --git a/core/modules/system/src/Tests/Theme/TwigTransTest.php b/core/modules/system/src/Tests/Theme/TwigTransTest.php
index 61812a3..314bed1 100644
--- a/core/modules/system/src/Tests/Theme/TwigTransTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigTransTest.php
@@ -141,12 +141,10 @@ public function testTwigTransTags() {
     );
 
     // @TODO uncomment this
-    /*
     $this->assertRaw(
       'DIS complex token HAZ LENGTH OV: 3. IT CONTAYNZ: <em class="placeholder">12345</em> AN &amp;&quot;&lt;&gt;. LETS PAS TEH BAD TEXT THRU: &"<>.',
       '{{ complex.tokens }} were successfully translated with appropriate prefixes.'
     );
-    */
 
     $this->assertText(
       'I have context.',
