Opet sam malo testirao, i kada user upise samo \ , popuUp se otvori,ali u njemu nema karaktera. Kada upise \n, popUp se uopste ne otvara. Kada upise \\, popUp se otvori,ali opet nema teksta.
Code:
htmlString = "<!doctype html public ""-//W3C//DTD HTML 4.0 Transitional//EN""><html><head>"
htmlString = htmlString & "<title> Report, " & pd.ID & ", " &YYYYMMDD2string(rd.date) & "</title>"
htmlString = htmlString & "<meta http-equiv=""Content-Type"" content=""text/html; charset=windows-1250"">"
htmlString = htmlString & "<meta name=""Author"" content=""Test""><div style=""font-family:Arial; font-size:9pt;"">"
htmlString = htmlString & "<b>Comment:</b>"
htmlString = htmlString & "<br>"
htmlString = htmlString & replace(rd.text, chr(13) & chr(10), "<br>")
htmlString = replace(htmlString, chr(13), "")
htmlString = replace(htmlString, chr(10), "")
htmlString = htmlString & "<br />"
Function dshb_escapeHTML(s)
If s <> "" Then
s = replace(s, "'", "'")
s = replace(s, """", """)
s = replace(s, " ", " ")
dshb_escapeHTML = replace(s, """", "\""")
Else
dshb_escapeHTML = ""
End If
End Function