fixed issues with special characters & got html loading properly when passed as expected
renamed methods to be more appropriate for their intended functionality