I'm using ParseNeko to parse a html into a DOM; then after transforming the DOM into HTML again (using TransformFactor y) I'm having a problem with javascript part. (the output is the same as the original except the javascript)
[CODE=html]<SCRIPT language="JavaS cript"><!-- function google_ad_reque st_done(google_ ads) { (...) google_ad_clien t = 'ca-mcn_js'; // substitute your client_id google_ad_chann el = 'Singapore'; google_ad_outpu t = 'js'; google_max_num_ ads = '3'; //google_page_url = 'http://www.channelnews asia.com/'; google_language = 'en'; google_encoding = 'latin1'; google_safe = 'high'; //google_adtest = 'on'; google_ad_secti on = 'default'; // --></SCRIPT>
<!-- End: Google ADS -->[/CODE]
Because it is a mess, after the comment sign // everything behind is considered comment as well.
Anyone know how to solve this problem??
Thanks a lot.
[CODE=html]<SCRIPT language="JavaS cript"><!-- function google_ad_reque st_done(google_ ads) { (...) google_ad_clien t = 'ca-mcn_js'; // substitute your client_id google_ad_chann el = 'Singapore'; google_ad_outpu t = 'js'; google_max_num_ ads = '3'; //google_page_url = 'http://www.channelnews asia.com/'; google_language = 'en'; google_encoding = 'latin1'; google_safe = 'high'; //google_adtest = 'on'; google_ad_secti on = 'default'; // --></SCRIPT>
<!-- End: Google ADS -->[/CODE]
Because it is a mess, after the comment sign // everything behind is considered comment as well.
Anyone know how to solve this problem??
Thanks a lot.
Comment