{"json_modified": "2016-08-19T15:50:14.460814", "uuid": "3fca7363-a7dd-415f-afbf-781e2f43ea15", "title": "Appendix E: DOM Building and Insertion (HTML & XUL)", "url": "/en-US/docs/Mozilla/Add-ons/Overlay_Extensions/XUL_School/DOM_Building_and_HTML_Insertion", "tags": [], "translations": [{"uuid": "796ebbaa-cd10-4981-b632-e54561a78671", "title": "Ap\u00e9ndice E: DOM e inserci\u00f3n HTML", "url": "/es/docs/Escuela_XUL/Ap%C3%A9ndice_E:_DOM_e_inserci%C3%B3n_HTML", "tags": [], "summary": "Many add-ons need to dynamically generate DOM content, either XUL or HTML, from their scripts. For security reasons, and to prevent errors, care needs to be taken to avoid evaluating arbitrary text as HTML. Failure to do so can lead to execution or remote scripts, and in the worst cases to privilege escalation which can leave a user's PC open to remote attack.", "localization_tags": [], "locale": "es", "last_edit": "2014-05-25T04:54:23", "review_tags": []}], "modified": "2016-08-19T15:50:14", "label": "Appendix E: DOM Building and Insertion (HTML & XUL)", "localization_tags": [], "locale": "en-US", "id": 1239, "last_edit": "2016-08-19T15:50:08", "summary": "Many add-ons need to dynamically generate DOM content, either XUL or HTML, from their scripts. For security reasons, and to prevent errors, care needs to be taken to avoid evaluating arbitrary text as HTML. Failure to do so can lead to execution or remote scripts, and in the worst cases to privilege escalation which can leave a user's PC open to remote attack.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Building_DOM_Trees", "title": "Building DOM Trees"}, {"id": "JSON_Templating", "title": "JSON Templating"}, {"id": "Another_Example", "title": "Another Example"}, {"id": "sect1", "title": "\u00a0"}, {"id": "jQuery_Templating", "title": "jQuery Templating"}, {"id": "innerHTML_with_HTML_Escaping", "title": "innerHTML with HTML Escaping"}, {"id": "Safely_Generating_Event_Listeners_and_Scripts", "title": "Safely Generating Event Listeners and Scripts"}, {"id": "Closures", "title": "Closures"}, {"id": "Multiple_Attributes", "title": "Multiple Attributes"}, {"id": "Escaping_Functions", "title": "Escaping Functions"}, {"id": "Safely_Using_Remote_HTML", "title": "Safely Using Remote HTML"}, {"id": "See_Also", "title": "See Also"}, {"id": "Original_Document_Information", "title": "Original Document Information"}], "slug": "Mozilla/Add-ons/Overlay_Extensions/XUL_School/DOM_Building_and_HTML_Insertion", "review_tags": []}