Simplify text2html function