I have a Rich Text Format(RTF) document which is generated by
-------------------------------------------------- <cfquery name="allPages" datasource="website_2014"> SELECT ID FROM websitepages WHERE areaID='100' </cfquery> <cfcontent type = "application/msword"> <cfoutput> <cfloop query="individualPages" startrow="1" endrow="#allPages.recordCount#"> <cfquery name="getData" datasource="website_2014"> SELECT pageContent FROM sitepages WHERE pageID='#allPages.ID#' Order by linkName </cfquery> #getData.pageContent# </cfloop> </cfoutput> -------------------------------------------------- The RTF document contains text like <strong>This is a test message</strong><br/> <a href="http://www.somedomain.com"> Test domain and lot of other HTML tags</a> I need to convert this to This is a test message(with bold formatting in Microsoft-Word) (Line break for <br/> tag) Test domain (which when clicked will lead to http://www.somedomain.com) I understand I can remove the HTML tags using regular expressions, but how can I recreate their effect(bold, hyperlink) in the RTF document. Any suggestions would be appreciated. Thanks