html DOM generation and html regeneration out of DOM -
i want html content of html file , modify areas (actually want translate text in html page )and rebuild new html file out of modified dom tree.can please show me way how can ?i have found html dom parsers,but dont regenerate modified html file me .they give me dom , can modify text nodes things want can not have new html file.
thank notice. mehrnaz
take @ jquery's $.html function. may able along lines of:
var newbody = '<div>translated text</div><div>more translated text</div>'; $('body').html(newbody);
this function replaces inside <body>
tag new contents.
Comments
Post a Comment