diff --git a/inc/html.php b/inc/html.php
index 8ec445248bf50c234bffb5d7066bb2319711662d..da27936e1561e680296cf45763f6e5d5c6f31f77 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -998,7 +998,7 @@ function html_signature(){
   $sig = str_replace('@NAME@',$INFO['userinfo']['name'],$sig);
   $sig = str_replace('@MAIL@',$INFO['userinfo']['mail'],$sig);
   $sig = str_replace('@DATE@',date($conf['dformat']),$sig);
-  return $sig;
+  return addslashes($sig);
 }
 
 /**