Utils/WikiTagUtils.php
changeset 9 cc32af725176
parent 8 7d2fb5d7c9ff
child 22 99c15cfe420b
equal deleted inserted replaced
8:7d2fb5d7c9ff 9:cc32af725176
    96         if(strlen($tag_label)==0){
    96         if(strlen($tag_label)==0){
    97             return $tag_label;
    97             return $tag_label;
    98         }
    98         }
    99         $tag_label = trim($tag_label);//tag.strip()
    99         $tag_label = trim($tag_label);//tag.strip()
   100         $tag_label = str_replace("_", " ", $tag_label);//tag.replace("_", " ")
   100         $tag_label = str_replace("_", " ", $tag_label);//tag.replace("_", " ")
       
   101         $tag_label = str_replace("Œ", "oe", $tag_label);
       
   102         $tag_label = str_replace("œ", "oe", $tag_label);
   101         $tag_label = preg_replace('/\s+/', ' ', $tag_label);//" ".join(tag.split())
   103         $tag_label = preg_replace('/\s+/', ' ', $tag_label);//" ".join(tag.split())
   102         $tag_label = ucfirst($tag_label);//tag[0].upper() + tag[1:]
   104         $tag_label = ucfirst($tag_label);//tag[0].upper() + tag[1:]
   103         return $tag_label;
   105         return $tag_label;
   104     }
   106     }
   105     
   107