displaying html by converting it to string