X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=c675903824f56ad5509f9e36a062154b896657cb;hb=c2a1af5769d76f0a44a45c159886001e992db886;hp=1dda8aa3082b79ec6fd1de98d2ab788b0d8d5026;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php index 1dda8aa..c675903 100644 --- a/plugins/compiler.icon.php +++ b/plugins/compiler.icon.php @@ -1,6 +1,6 @@ _parse_attrs($tag_attrs)); + $alt = 'alt=""'; + if (isset($title)) { - $title = 'title="'.htmlentities(trim($title, '\'"'), ENT_QUOTES).'" '; + $title = pl_entities(trim($title, '\'"'), ENT_QUOTES); + $alt = 'alt="'.$title.'"'; + $title = 'title="'. $title.'" '; } - $name = htmlentities(trim($name, '\'"'), ENT_QUOTES); + $name = pl_entities(trim($name, '\'"'), ENT_QUOTES); $name = "images/icons/$name.gif"; if ($full) { global $globals; $name = $globals->baseurl . '/' . $name; } - return "?>