<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">El 05/05/16 a las 02:20, Utkarsh Tiwari
escribió:<br>
</div>
<blockquote
cite="mid:CAFRUKocn4_KRtno08SFw2S-tS0oOzhHa0BaEAJf5tO6U-6_2Ug@mail.gmail.com"
type="cite">
<pre wrap="">Hi,
I need to add the facility to view the source code of the current
open webpage in a new tab. I tried that by fetching the source code
using webkit and displaying it via javascript query
'browser.execute_query('JS_Query')' but have been some problems while
parsing the html code to string.
Could anyone here suggest any other possible way to get about it?</pre>
</blockquote>
<br>
It is not clear 100% to me what you are asking but from Webkit
documentation you can try the method <br>
`browser.load_string( content, mime_type, encoding, base_uri )`
instead.<br>
<br>
Reference:<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<a class="moz-txt-link-freetext" href="http://webkitgtk.org/reference/webkitgtk/stable/webkitgtk-webkitwebview.html#webkit-web-view-load-string">http://webkitgtk.org/reference/webkitgtk/stable/webkitgtk-webkitwebview.html#webkit-web-view-load-string</a><br>
<br>
<blockquote
cite="mid:CAFRUKocn4_KRtno08SFw2S-tS0oOzhHa0BaEAJf5tO6U-6_2Ug@mail.gmail.com"
type="cite">
<pre wrap="">
Thanks,
Utkarsh Tiwari
_______________________________________________
Sugar-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>