README.md

December 4, 2022 ยท View on GitHub

addBr

Description

This code takes input from a textarea and replaces carriage returns with the HTML line break BR...

More Info

This code accepts a text string.

You need to take a string variable Ex. myString and set it equal to addBr( myString ). Ex. myString = addBr( myString ) and ta da well formatted HTML text!

This code returns the initial string with the chr(10) relpaced by
. It is really handy to keep the formatting the user enters.

Switches chr(10) with
for HTML formatting.

Submitted On
ByRobert Somers
LevelBeginner
User Rating3.5 (28 globes from 8 users)
CompatibilityASP (Active Server Pages)
CategoryStrings
WorldASP / VbScript
Archive File

API Declarations

Please rank my code! And vote for me!

Source Code

<%
FUNCTION addBr( myString )
 addBr = Replace(myString, CHR(10), "<BR>")
END FUNCTION
%>