Home / code

nl2br

Writer: Christophe Wolfs
Published: 27 March 2008

A script to convert newlines to break.

'this is a simple but usefull function to convert
'newline to <br>
'Provided by www.webmaster2020.com

FUNCTION nl2br(string)

  string = Replace(string,Chr(13),"<br>" & vbCrLf)
  nl2br = string

END FUNCTION

 

TOP