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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -