I am a programmer, I made an web editor. The problem is this. The editor is inside a DIV < div ix="container"> now... the problem is with the other party, somebody can upload an document with an extra </div> tag and close my DIV +++ destroy the design of the page, making it unusable. Is there any way to make protected DIVs, if i wish to load content inside them with .innerHTML , etc? Or i should write extra functions in php to take care of the extra </div> </span,etc? !
Sounds more like you want an OBJECT -- or if you prefer to stuff your head up 1997's backside, an IFRAME. Apart from that <broken record>without seeing the code in question, we really can't dial in much of a solution...</broken record>
I'm confused then. You are asking advice about an editor you have written but it's not just about editing because for editing you use something else. What are you actually trying to do?