diff --git a/EMS/helpers/src/Html/HtmlHelper.php b/EMS/helpers/src/Html/HtmlHelper.php
index ec4bd26cd..94d972f83 100644
--- a/EMS/helpers/src/Html/HtmlHelper.php
+++ b/EMS/helpers/src/Html/HtmlHelper.php
@@ -4,6 +4,8 @@
namespace EMS\Helpers\Html;
+use EMS\Helpers\Standard\Type;
+
class HtmlHelper
{
/**
@@ -43,4 +45,13 @@ public static function isHtml(?string $source): bool
return $source !== \strip_tags($source);
}
+
+ public static function stripZeroWidthCharacters(?string $sourceHtml): ?string
+ {
+ if (null === $sourceHtml) {
+ return null;
+ }
+
+ return Type::string(\str_replace(['', ''], ['', ''], $sourceHtml));
+ }
}