문제

I need to take some raw text and convert the linefeeds to HTML breaks.

This does not work.

myhtml=Replace(myhtml, chr(13), "<br>")

What Does?

도움이 되었습니까?

해결책

Chr(13) may not be the end-of-lines in your text, also Replace() only works on the first occurence. Try this...

myhtml = ReplaceAll(myhtml, EndOfLine.Unix, "<br>")

and test with the EndOfLine variations Macintosh and Windows.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top