Dynamic getting html encofing