2
0
forked from Wavyzz/dolibarr

Fix: problme d'affichage de la description si fckeditor est actif mais dsactiv sur les descriptions produits

This commit is contained in:
Regis Houssin
2007-03-20 12:12:51 +00:00
parent 4cf0a3a828
commit 16f83e1492
6 changed files with 944 additions and 933 deletions

View File

@@ -2298,14 +2298,25 @@ function weight_units_string($unit)
}
/**
\brief Nettoie le code HTML
\brief Decode le code html
\param string StringHtml
\return string DecodeString
*/
function dol_entity_decode($StringHtml)
{
$DecodeString = html_entity_decode($StringHtml);
return $DecodeString;
}
/**
\brief Supprime le code html
\param string StringHtml
\return string CleanString
*/
function clean_html($StringHtml)
{
$pattern = "<[^>]+>";
$temp = html_entity_decode($StringHtml);
$temp = dol_entity_decode($StringHtml);
$temp = ereg_replace($pattern,"",$temp);
// Supprime aussi les retours
$temp=str_replace("\n"," ",$temp);