«

»

Jan 19

Print this Post

Format Text Function (fmtText)

Converts line breaks in a string to HTML line “br” tag for html display

function fmtText(inText)
	if not isnull(inText) then
		fmtText = replace(inText,vbcrlf,"<br>")
		fmtText = replace(fmtText,chr(10),"<br>")
		fmtText = replace(fmtText,chr(13),"<br>")
	end if
end function

Permanent link to this article: https://www1.wperry.net/code/fmttext/

Leave a Reply

Your email address will not be published. Required fields are marked *