HTML genaration parsing markups inside index