X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=ea7f8c76c2d694610d9b072b7d09141c62802f40;hb=7b2bd26189b7420bc84fe6d1c5197ba91a8c9866;hp=acbaa03fd073a25513482ba04b25fe9ed0b693fa;hpb=5ef09bc4748e7f0ec4dc8be3b94672b6a51fffc3;p=platal.git
diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php
index acbaa03..ea7f8c7 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 "?>![]($name)