diff --git a/include/functions.php b/include/functions.php
index 1db3b117ca0e05aed9e0a76b9c6e96e529610039..9c107c5919ce2f9534378a6ba3f465dc79c80f29 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2523,7 +2523,7 @@
 
 		$res = trim($str); if (!$res) return '';
 
-		$config = array('safe' => 1, 'deny_attribute' => 'style, width, height, class, id', 'comment' => 1, 'cdata' => 1);
+		$config = array('safe' => 1, 'deny_attribute' => 'style, width, height, class, id', 'comment' => 1, 'cdata' => 1, 'balance' => 0);
 		$res = htmLawed($res, $config);
 
 		if (get_pref($link, "STRIP_IMAGES", $owner)) {