changed quoting for wz_tooltips to allow linebreaks

This commit is contained in:
Ralf Becker 2004-07-19 15:19:02 +00:00
parent 7ac6dfb765
commit bfab7d5a46

View File

@ -93,7 +93,7 @@ class html
}
if ($text === False) return ' onmouseover="'.$opt_out.'return escape(this.innerHTML);"';
return ' onmouseover="'.$opt_out.'return escape(\''.addslashes(@htmlentities(str_replace(array("\n","\r"),' ',$text),ENT_COMPAT,$this->charset)).'\')"';
return ' onmouseover="'.$opt_out.'return escape(\''.str_replace(array("\n","\r","'",'"'),array('<br />','',"\\'",'&quot;'),$text).'\')"';
}
function activate_links($content)