diff --git a/ecrire/inc_filtres.php3 b/ecrire/inc_filtres.php3 index 18db66f590c87f3c71940cbb770199fe65972434..9577777681ef9df31e00bcce4d566a6bac306a42 100644 --- a/ecrire/inc_filtres.php3 +++ b/ecrire/inc_filtres.php3 @@ -1669,6 +1669,14 @@ function alterner($i) { return $args[(intval($i)-1)%($num-1)+1]; } +// recuperer une balise HTML de type "xxx" +// exemple : [(#DESCRIPTIF|extraire_attribut{img})] (pour flux RSS-photo) +function extraire_tag($texte, $tag) { + if (preg_match(",<$tag(\\s.*)?".">,Uims", $texte, $regs)) + return $regs[0]; +} + + // recuperer un attribut html d'une balise // ($complet demande de retourner $r) function extraire_attribut($balise, $attribut, $complet = false) {