Det ska inte vara några dubbelfnuttar runt vbCrLf.
textish = Replace(textish, vbcrlf, "<br>")
textish = Replace(textish, VBCR, "<br>")
5 svar · 198 visningar · startad av MoonCow
Tjena! Jag hade tänkt att ens presentation på min community skulle ha stöd för radbrytningar men ändå inte HTML.. gjorde så här:
<%
textish = Server.HTMLEncode(RecSet("presentation"))
textish = Replace(textish, ":)", "<img src='smiley.gif'>")
textish = Replace(textish, ":-)", "<img src='smiley.gif'>")
textish = Replace(textish, "=)", "<img src='smiley.gif'>")
textish = Replace(textish, ";)", "<img src='skamta.gif'>")
textish = Replace(textish, ";-)", "<img src='skamta.gif'>")
textish = Replace(textish, ":D", "<img src='stortsmajl.gif'>")
textish = Replace(textish, ":-D", "<img src='stortsmajl.gif'>")
textish = Replace(textish, ":(", "<img src='sad.gif'>")
textish = Replace(textish, ":-(", "<img src='sad.gif'>")
textish = Replace(textish, ":p", "<img src='tongue.gif'>")
textish = Replace(textish, ":-p", "<img src='tongue.gif'>")
textish = Replace(textish, "vbcrlf", "<br>")
textish = Replace(textish, "VBCR", "<br>")
%>
<%=textish%>
men ändå inga radbrytningar (smilisarna fungerar dock)
är inte så haj på VBCR och vad det heter.. möjligt att dom är fel men nån som vet?
Det ska inte vara några dubbelfnuttar runt vbCrLf.
textish = Replace(textish, vbcrlf, "<br>")
textish = Replace(textish, VBCR, "<br>")
vbcrlf är en konstant och skall inte ha snuffar runt sig:
textish = Replace(textish, vbcrlf, "<br>")
vbcr behöver du inte ha med...
<%
textish = Replace(Server.HTMLEncode(RecSet("presentation"), vbcrlf, "<br>" & vbcrlf)
textish = Replace(textish, ":)", "<img src='smiley.gif'>")
textish = Replace(textish, ":-)", "<img src='smiley.gif'>")
textish = Replace(textish, "=)", "<img src='smiley.gif'>")
textish = Replace(textish, ";)", "<img src='skamta.gif'>")
textish = Replace(textish, ";-)", "<img src='skamta.gif'>")
textish = Replace(textish, ":D", "<img src='stortsmajl.gif'>")
textish = Replace(textish, ":-D", "<img src='stortsmajl.gif'>")
textish = Replace(textish, ":(", "<img src='sad.gif'>")
textish = Replace(textish, ":-(", "<img src='sad.gif'>")
textish = Replace(textish, ":p", "<img src='tongue.gif'>")
textish = Replace(textish, ":-p", "<img src='tongue.gif'>")
%>
<%=textish%>
U guys I lub u! tack!
Såg bara att Vide har haft lite otur.
på dom 2 sista replace trådarna har han tre gånger lyckats svara 2a i samma minut som föregående, och samma sak