Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text2Html
#3
This way doesn't convert links,...

Macro
Code:
Copy      Help
out
str text="This is a link http://www.quickmacros.com[][]and this is another line"
HtmlDoc d.InitFromText(text)
str html=d.GetHtml
out html

;some more processing needed, eg replace " to ", specify charset, etc


result:

<HTML><HEAD></HEAD>
<BODY>This is a link http://www.quickmacros.com and this is another line</BODY></HTML>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)