Apply html code