// holding the wiki markup in the variable $text $html = $text; $html = html_entity_decode($html); $html = str_replace('–','-',$html); $html = str_replace('"','"',$html); $html = preg_replace('/\&(nbsp);/','&${1};',$html); $html = str_replace('{{PAGENAME}}',$title,$html); // Table $html = convertTables($html); $html = simpleText($html);