[Sugar-devel] View Source Code [BROWSE]

Tony Anderson tony_anderson at usa.net
Thu May 5 07:31:33 EDT 2016


Hi, Utkarsh

Naturally, the html page is a text file. A simple technique would be:

<!DOCTYPE html5>
<html>
<head>
<title>web.html</title>
</head>
<body>
<pre>
the text of the html file
</pre>
</body>

On 05/05/2016 08:20 AM, Utkarsh Tiwari wrote:
> 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?
>
> Thanks,
> Utkarsh Tiwari
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel



More information about the Sugar-devel mailing list