Saving as HTML, body only

General TRichView support forum. Please post your questions here
Post Reply
mstaszew
Posts: 7
Joined: Wed Feb 13, 2013 4:52 pm

Saving as HTML, body only

Post by mstaszew »

I need the HTML contained within the <body></body> tags only. Currently I'm saving as HTML and using regex to extract what I'm looking for. To make sure I'm not using excess code, does TRichViewEdit support saving the HTML body only?

Thanks,
Michael
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Include rvsoMiddleOnly in the Options parameter of SaveHTML/SaveHTMLEx.

(starting and ending parts of HTML can be saved using rvsoFirstOnly and rvsoLastOnly)
mstaszew
Posts: 7
Joined: Wed Feb 13, 2013 4:52 pm

Post by mstaszew »

Thanks, this is exactly what I was looking for.
Post Reply