Ecco un metodo abbastanza utile, in grado di rimuovere tutti i tag XML/HTML (comunque tutto il testo contenuto tra i caratteri maggiore e minore) presenti in una stringa di testo.

private string RemoveTags(string input)

{
return Regex.Replace(input, @"<[^>]*>", String.Empty);
}
Commenti(0) - Posted @ 1/5/2007 12:17:49 PM - Categoria: Useful methods - Permalink - Share on twitter | facebook


COMMENTI
Non sono stati aggiungi commenti ...

INSERISCI UN COMMENTO

Nome *
Indirizzo e-mail
(non verrà pubblicato)
Commento *