javascript - Cleaning up the HTML generated by JQueryUI? -
Can it be done? I am creating a template generator complete with resizable and draggable elements in a preview window. The problem is, when I generate HTML, all elements are added to all the JTUUUUUU classes and divisions, which are not desirable in the final product . I want to simplify the output HTML so that I can increase the posts and sizes so that it is my page, but I can not keep the preview window as optimized as possible and still get the clean HTML out of it. Has anyone ever done such a thing? idea? idea? Thanks in advance.
Edit: In other words, I do this html process by any means:
and end up with something else like this:
& lt; Div id = "preview_title" value = "title" style = "visibility: visible; width: 400px; height: 16px; top: 32px; left: 12px;" & gt; Title & lt; / Div & gt; & Lt; Div id = "preview_logo" value = "logo" style = "visibility: visible: width: 50px; height: 50px; top: 123px; left: 16px;" & Gt; Logo & lt; / Div & gt; & Lt; Div id = "preview_ticker" value = "ticker" style = "visibility: visible; width: 400px; height: 32px; top: 12px; left: 12px;" & Gt; Ticker & lt; / Div & gt; & Lt; Div id = "preview_clock" value = "clock" style = "visibility: visible: 45px; height: 45px; top: 12px; left: 100px;" & Gt; Clock & lt; / Div & gt; For almost every Jquery UI object you can call the 'destruction' method, which removes all. Special HTML
Comments
Post a Comment