Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/10/2006, 02:41
javihb
 
Fecha de Ingreso: octubre-2004
Mensajes: 230
Antigüedad: 20 años, 6 meses
Puntos: 0
problema con <br>

Hola amigos vereis, tengo un problemilla al mostrar informacion de una db oracle, bien, cuando inserto los datos de un formulario tengo una funcion que me sustituye los caracteres
Código:
Function AcomodarTexto(texto)
texto=replace(texto,"á","&aacute;")
texto=replace(texto,"à","&agrave;")
texto=replace(texto,"Á","&Aacute;")
texto=replace(texto,"À","&Agrave;")
texto=replace(texto,"é","&eacute;")
texto=replace(texto,"è","&egrave;")
texto=replace(texto,"É","&Eacute;")
texto=replace(texto,"È","&Egrave;")
texto=replace(texto,"í","&iacute;")
texto=replace(texto,"ì","&igrave;")
texto=replace(texto,"Í","&Iacute;")
texto=replace(texto,"Ì","&Igrave;")
texto=replace(texto,"ó","&oacute;")
texto=replace(texto,"ò","&ograve;")
texto=replace(texto,"Ó","&Oacute;")
texto=replace(texto,"Ò","&Ograve;")
texto=replace(texto,"ú","&uacute;")
texto=replace(texto,"ù","&ugrave;")
texto=replace(texto,"Ú","&Uacute;")
texto=replace(texto,"Ù","&Ugrave;")
texto=replace(texto,"ñ","&ntilde;")
texto=replace(texto,"Ñ","&Ntilde;")
texto=replace(texto,"¡","¡")
texto=replace(texto,"!","!")
texto=replace(texto,"¿","¿")
texto=replace(texto,"<","&lt;")
texto=replace(texto,">","&gt;")
texto=replace(texto,"º","°")
texto=replace(texto,"ª","ª")
texto=replace(texto,vbCrLf,"<br>")
texto=replace(texto,Chr(34),""")
texto=replace(texto,"'","''")
texto=replace(texto,"“",""")
texto=replace(texto,"”",""")
texto=replace(texto,"«",""")
texto=replace(texto,"»",""")
texto=replace(texto,"»",""")
AcomodarTexto=texto
End function
Bien, esto va perfecto, los saltos de linea me los mete como <br>...OK pero despues tengo la opción de modificar esos datos y me saca otro formulario en el cual en un textarea me saca la información pero me la saca incluyendo lo <br> que haya y cuando hago un cambio y le doy a insertar en la db me inserta los <br> literalmente asi que cuando voy a ver la informacion me sale totalmente descuadrada y con los <br> que hay .....No hay alguna forma de solucionar esto...
Gracias