get html and encode