README.md
December 4, 2022 ยท View on GitHub
Description
A better, more efficient way of Replacing Carriage Returns ina user form or String that the addBR found elsewhere on this site.
More Info
All it needs is a string which can come from a database or a form/textarea.
Nothing really, quite simple. The "& vbcrlf" is not required, this merely makes your returned html look like the users submission. you may omit this if you want the users results to appear on one line in the returned html source.
returns a string with
's in place of carriage returns.
Some users may hit enter too many times in their textboxes, can take up lots of space.
| Submitted On | |
| By | Robbie Powell |
| Level | Beginner |
| User Rating | 3.0 (18 globes from 6 users) |
| Compatibility | ASP (Active Server Pages), VbScript (browser/client side) |
Category |Validation/ Processing World |ASP / VbScript Archive File |
API Declarations
Can't copyright something this simple.
Source Code
Function addbr(myString)
addbr=Replace(myString, vbcrlf, "<BR>" & vbcrlf)
End Function