added html encode, decode