Page 1 of 1

Saving as HTML, body only

Posted: Wed Feb 13, 2013 7:12 pm
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

Posted: Thu Feb 14, 2013 8:20 am
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)

Posted: Thu Feb 14, 2013 3:00 pm
by mstaszew
Thanks, this is exactly what I was looking for.