Existe alguna funcion para convertir un archivo html
en archivo de texto libre de etiquetas
Gracias
Alguna funcion que convierta un html en txt
-
- Posts: 225
- Joined: Tue Feb 28, 2006 4:25 pm
- Location: PERU
Alguna funcion que convierta un html en txt
ME INTERESA FW Y XHB POR SER OPEN SOURCE
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Vladimir,
Nosotros usamos esta función para quitar los tags:
Nosotros usamos esta función para quitar los tags:
Code: Select all
function RemoveTags( cText ) // Quita "< ... >" de un texto
local nStart, nEnd
while ( nStart := At( "<", cText ) ) != 0
nEnd = At( ">", SubStr( cText, nStart + 1 ) )
if nEnd == 0
nEnd = nStart
else
nEnd += nStart
endif
cText = If( nStart > 1, SubStr( cText, 1, nStart - 1 ), "" ) + SubStr( cText, nEnd + 1 )
end
return cText