Page 1 of 1

Convert text into HTML

PostPosted: August 7th, 2005, 6:15 am
by Naser
i want a component (or code) for convert a text to HTML
Thank

PostPosted: August 7th, 2005, 2:02 pm
by Johnny_Bit
? Yeh joking, right? Plain text to HTML? What's a problem in zat?
Code: Select all
s:='<html><body>'+StringReplace(text,#13#10,'<br \>')+'</body></html>';


Ofcourse if you want to convert formated(rtf)text to html, there's free component in JediVCL JvRTF2HTML that makes it all.

PostPosted: August 7th, 2005, 5:40 pm
by Naser
please get me a link for JvRTF2HTML for download
thanks

PostPosted: August 10th, 2005, 6:16 am
by Johnny_Bit