tutorial to input a text and show it with special codes replaced by images