Anglais Francais Prosygma 

Italie
-
    hebergement 

asp
prosygma_logo



 Divers (1)  Chaînes (31)  Dates (18)  Nombres (8)  Structures (5) 
 Tableaux (6) 
asc/ord - chr - crunch - cstr/(string) - dosql/addslashes - ereg_replace - htmlspecialchars - instr/strpos - instrrev/strrpos - lcase/strtolower - left - len/strlen - ltrim - mid/substr - nl2br - notag - parcelstr - password - replace/str_replace - right - rtrim - space - string/str_repeat - tarea/htmlentities - trim - ucase/strtoupper - ucfirst - undosql/stripslashes - urldecode - urlencode - wrapstr
NOTAG 
Supprime tous les tags HTML d'une chaîne
ASP
<%
function notag(txt)
   set regEx = New RegExp
   regEx.Global = True
   regEx.Pattern = "<[^>]+>"
   notag = regEx.replace(txt,"")
end function

response.write notag(chaine)
%>

PHP
<?
function notag($txt) {
   return ereg_replace("<[^>]+>","",$txt);
}

echo notag($chaine);
?>

JavaScript
<script>
function notag(txt) {
   return txt.replace(/<[^>]+>/g,"")
}

document.write(notag(chaine))
</script>

© ASP-PHP.net 11/01/2003