/","",$string);
$string = preg_replace("//","",$string);
$string = preg_replace("/<\/PARAGRAPH>/","
\n\n",$string);
//PHOTO
// $string = preg_replace("//","",$string);
$string = preg_replace("//","",$string);
$string = preg_replace("/<\/PHOTO>/","
\n\n",$string);
// $string = preg_replace("//","",$string);
// $string = preg_replace("/<\/PHOTO>/","
\n\n",$string);
//SUBHEAD
// $string = preg_replace("//","",$string);
// $string = preg_replace("/<\/SUBHEAD>/","
\n\n",$string);
$string = preg_replace("//","",$string);
$string = preg_replace("/<\/SUBHEAD>/","
\n\n",$string);
//BOOK
$string = preg_replace("//","",$string);
$string = preg_replace("/<\/BOOK>/","
\n\n",$string);
//BIO
// $string = preg_replace("//","",$string);
$string = preg_replace("/
/","",$string);
$string = preg_replace("/<\/BIO>/","
\n\n",$string);
//MAINBODY
$string = preg_replace("/http:\/\/www\.japantimes\.co\.jp/","",$string);
// 080220 lingospot (News only)
/*
if(preg_match("/^n/",$type)){
$lingo = "\n";
if($calltype == "rss"){
$lingo_s = "\n\n\n";
}else{
$lingo_s = "\n\n";
}
$string = preg_replace("//","\n$lingo",$string);
$string = preg_replace("/<\/MAINBODY>/","
\n\n",$string);
$template = preg_replace("()","$lingo_s",$template);
}else{
$string = preg_replace("//","",$string);
$string = preg_replace("/<\/MAINBODY>/","
\n\n",$string);
}
*/
$string = preg_replace("//","",$string);
$string = preg_replace("/<\/MAINBODY>/","
\n\n",$string);
//FOOTER(start)
if($thefile == "ek20070918wh.html"){
$debate_code = "\n\n\n\n
";
}elseif($thefile == "ek20070821wh.html"){
$debate_code = "\n\n\n
";
}elseif($thefile == "ek20070717wh.html"){
$debate_code = "blog comments powered by ";
}
// chg 070503 kono $toeditor global variable exists in the [context.php]
$toeditor = preg_replace("/ARTICLEINFO/","ARTICLEINFO=$thefile&HEADLINE=$headline",$toeditor);
//20071122 kato google_ad change
if(preg_match("/^n|^e|^r/",$code)){
$context_tag = $context_tag1;
if(preg_match("/^ek/",$code)){
$context_tag = $context_tag2;
}
}elseif(preg_match("/^f/",$code)){
$context_tag = $context_tag2;
}elseif(preg_match("/^s/",$code)){
$context_tag = $context_tag3;
}else{
$context_tag = $context_tag4;
}
$string = preg_replace("/