How to get RAW Html code from my module? I looked around for a few hours but wasn't able to find any available hooks to get pure raw html code. If you right-click on any webpage and do "get source", it will give you the raw html output. 

However, there doesn't seem to be a function or hook available that I can find in Drupal that does this. 

Does anyone know if this is possible? Thank you.
It's not totally clear what you mean by 'from my module' but if you're asking how to get the HTML code of any Url into a variable in your module, you can use the drupal_http_request function. Below example comes from https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_http_request/7.x

$data = 'name=value&amp;name1=value1';

$options = array(
                'method' =&gt; 'POST',
                'data' =&gt; $data,
                'timeout' =&gt; 15,
                'headers' =&gt; array('Content-Type' =&gt; 'application/x-www-form-urlencoded'),
        );

$result = drupal_http_request('http://somewhere.com', $options);


You can also use curl via the cURL HTTP Request (chr) module.