Convert string to safe print in html page.