Convert text into HTML

Please discuss general Delphi programming topics here.

Convert text into HTML

Postby Naser » August 7th, 2005, 6:15 am

i want a component (or code) for convert a text to HTML
Thank
Naser
Active Member
Active Member
 
Posts: 17
Joined: March 6th, 2005, 5:31 pm
Location: Iran - Esfahan

Postby Johnny_Bit » August 7th, 2005, 2:02 pm

? 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.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby Naser » August 7th, 2005, 5:40 pm

please get me a link for JvRTF2HTML for download
thanks
Naser
Active Member
Active Member
 
Posts: 17
Joined: March 6th, 2005, 5:31 pm
Location: Iran - Esfahan

Postby Johnny_Bit » August 10th, 2005, 6:16 am

Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron