- wxString script = ("var range = window.getSelection().getRangeAt(0);"
- "var element = document.createElement('div');"
- "element.appendChild(range.cloneContents());"
- "return element.innerHTML;");
- NSString *result = [m_webView stringByEvaluatingJavaScriptFromString:
- wxNSStringWithWxString(script)];
- return wxStringWithNSString(result);