Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/05/2005, 18:07
sqa212
 
Fecha de Ingreso: mayo-2003
Mensajes: 866
Antigüedad: 22 años
Puntos: 0
Por fin lo he solucionado
Uso la funcion llevarabd(txt) para insertar en la base de datos y la funcion traerdebd(txt) para rescatarlos.
<% Function llevarabd(txt)
txt = Replace (txt, "<", "Chr(60)")
txt = Replace (txt, "&lt;", "Otro(60)")
txt = Replace (txt, ">", "Chr(62)")
txt = Replace (txt, "&gt;", "Otro(62)")
txt = Replace (txt, "'", "Chr(39)")
llevarabd = txt
End function %>
<% Function traerdebd(txt)
txt = Replace (txt, "Chr(60)", "<")
txt = Replace (txt, "Otro(60)", Server.HTMLEncode("&lt;"))
txt = Replace (txt, "Chr(62)", ">")
txt = Replace (txt, "Otro(62)", Server.HTMLEncode("&gt;"))
txt = Replace (txt, "Chr(39)", "'")
traerdebd = txt
End function %>

No se si a mediada que introduzca diferente codigo me daran problemas con otros caracteres, si encuentro mas los pondre aqui tambien.
Gracias a todos los que intentasteis resolverlo