Generate markup from string