Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/04/2012, 14:26
Avatar de elarrieux
elarrieux
 
Fecha de Ingreso: abril-2012
Ubicación: Uruguay
Mensajes: 67
Antigüedad: 12 años
Puntos: 26
Respuesta: Filtrar WYSIWYG

Hola!

Si, podes usar algo como esto:

Código:
    StringBuilder sb = new StringBuilder(
                            HttpUtility.HtmlEncode(htmlInputTxt.Text));
Donde htmlInputTxt es el control que contiene el HTML.

Luego usando sb.ToString() obtienes el codigo limpio.

Sds.