cleanup markup in singlephp