
12/03/2002, 06:42
|
| | Fecha de Ingreso: agosto-2001
Mensajes: 336
Antigüedad: 23 años, 8 meses Puntos: 0 | |
Re: limpiar código Claro que si compa,siento no haber respondido antes pero es que estoy metido ahora en el mundo Php, esta funcion la saque de algun lado.
Extract Text From HTML
By Steven Smith
[Example/ClassicASP]
[Example/VB.Net]
[Example/C#]
My code was written using ASP and VBScript (version 5.5 for RegExp support), but I'll show how it can easily be done in ASP.NET.
First, let look at the source code of the ASP function:
Function RemoveHTML( strText )
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
strText = Replace(LCase(strText), "<br>", chr(10))
RemoveHTML = RegEx.Replace(strText, "")
End Function
La probe en su tiempo y funciono Ok, como veras tambien tengo las de c# y vb.net , pero no cogian en el mensaje, si las quieres enviame un correo y te las paso.
Salud ;) s |