Good day All,
i am using this code to remove all links to the specified pages in the page showing to the user. first i start output buffering and then i do a preg_replace, when i try removing just the link it works fine. But i also need sometimes to remove the surronding Table row, to get rid of the borders & wasted space. This is for use in a show/hide module. the code is:
// names of php files seperated by '|' with no '.php'
$pages = "StockTransfers|ReverseGRN";
$buffer= preg_replace("<[aA]\s?.*\s[hH][rR][eE][fF]=[\"\']?.*(".$pages.").*[\"\']?\s*.*[^(\/a)]+/a>","dummy",$buffer);
return $buffer;
please advice,
thank you for your time