Visualizzazione dei risultati da 1 a 7 su 7

Visualizzazione discussione

  1. #6
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,783
    purtroppo...
    Microsoft, in its infinite wisdom decided not to include an HTMLDecode function with their Server component
    http://www.flogiston.be/blog/2008/10...ns/#htmldecode
    bisogna quindi utilizzare una funzione e settare tutti i singoli valori, un esempio:
    codice:
    Function HTMLDecode(sText)
        Dim I
        sText = Replace(sText, """, Chr(34))
        sText = Replace(sText, "<" , Chr(60))
        sText = Replace(sText, ">" , Chr(62))
        sText = Replace(sText, "&" , Chr(38))
        sText = Replace(sText, " ", Chr(32))
            For I = 1 to 255
                sText = Replace(sText, "&#" & I & ";", Chr(I))
            Next
        HTMLDecode = sText
    End Function
    al posto di Chr(nn) potrai usare i caratteri reali
    in pratica, al momento della creazione del file xml, convertirai tutte le entità


    altrimenti, se hai la gestione del server, puoi tentare con questa libreria:
    https://www.example-code.com/asp/asp...ity_decode.asp
    Ultima modifica di Vincent.Zeno; 19-01-2018 a 13:43

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.