Find and Replace with QueryPath in PHP

28 May 2012 -


To find and replace using querypath without destroying existing context you can use the following:

$temp = qp($output, 'table')->addclass('table'); $output = $temp->top('body')->innerHTML();