---
title: "ändå inget BR :("
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/12524-ändå-inget-br"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "MoonCow"
published: "2001-11-07T21:11:00.000Z"
updated: "2001-11-08T07:00:00.000Z"
replies: 5
views: 198
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/12524-ändå-inget-br"
---

# ändå inget BR :(

## #1 — MoonCow, 2001-11-07T21:11Z

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?

Permalänk: https://www.webforum.nu/p/12524

## #2 — SPiN, 2001-11-07T21:20Z

Det ska inte vara några dubbelfnuttar runt vbCrLf.

```
textish = Replace(textish, vbcrlf, "<br>")
textish = Replace(textish, VBCR, "<br>")
```

Permalänk: https://www.webforum.nu/p/294004

## #3 — Vide, 2001-11-07T21:20Z

vbcrlf är en konstant och skall inte ha snuffar runt sig:

```
textish = Replace(textish, vbcrlf, "<br>")
```

vbcr behöver du inte ha med...

Permalänk: https://www.webforum.nu/p/294005

## #4 — icaaq, 2001-11-07T21:22Z

\<%
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%\>

Permalänk: https://www.webforum.nu/p/294006

## #5 — MoonCow, 2001-11-08T06:17Z

U guys :r I lub u! tack! :)

Permalänk: https://www.webforum.nu/p/294007

## #6 — Rinaldo, 2001-11-08T07:00Z

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 :e

Permalänk: https://www.webforum.nu/p/294008

---

Tråden på webben: https://www.webforum.nu/amne/asp/12524-ändå-inget-br
