How to print external html output in form_submit
You might try using the drupal api function drupal_set_message()

https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_set_message/7

so in your case:

drupal_set_message($some_var); // will display the rendered html as a status message