How to save in php var an Javascript output

102 views Asked by At

I have an cURL php output in a variable that contains the following code

document.writeln('<tr>')
document.writeln('<td align=left valign=top> SOME TEXT </td>')
document.writeln('<td class=tdrescent valign=top>10-04-2013</td>')
document.writeln('<td class=tdrescent valign=top>10-04</td>')
document.writeln('<td class=tdresizq valign=top> TEXT</td>')
document.writeln('</tr>')

i need to extract the content of the table.( some text ,10-04-2013,10-04,TEXT)

I try it to save it in a variable, making an ob_start() to capture the output but don't work.

  ob_start();
  echo $out;
  $html = ob_get_contents();
  ob_end_clean();

i try it this to save an html content in a variable an after that, work with this.

what can i do ?

0

There are 0 answers