outer and inner code option in getHtml function.