Outsourced getUserSelectTranslateHTMLCode().