diff --git a/src/TwigExtension/SortByWeight.php b/src/TwigExtension/SortByWeight.php
index 2525b208b62870c89da72862cd007f7c060558ab..998039d9da18aa639f441c11eee7edefae181410 100644
--- a/src/TwigExtension/SortByWeight.php
+++ b/src/TwigExtension/SortByWeight.php
@@ -15,9 +15,7 @@ class SortByWeight extends AbstractExtension {
    */
   public function getFilters() {
     return [
-      new TwigFilter(
-        'sortbyweight', [$this, 'performSort', 'is_safe' => ['html']]
-      ),
+      new TwigFilter('sortbyweight', [$this, 'performSort']),
     ];
   }