change some html structure. add escape on space in url when checking iframable