I am loading a page into twebbrowser and I need to do the following:
The document (from the top) starts with a <!DOCTYPE and ends with a > I need to copy that into a variable (string)
Here is an example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
Above is the begining of the html file ... I need to copy from the beginining <!DOCTYPE to the ending > nothing else.
Hope you can help! thanks.
p.s: I'm actually using TEmbeddedWB but it's the same as TWebBrowser ...