Fixed an error in importing local text to html.