2016-08-06 9 views

Antwort

0

In Ihrem einfachen Fall der "preg_match" -Ansatz, wie unten aussehen:

$content = '<pre 
class="glossaryProduct"> 
    data goes here<br> 
    and here 
</pre>'; 

preg_match("/<pre[^>]*?>(.*)<\/pre>/s", $content, $matches); 
$result = $matches[1]; 
// now the $result contains the needed data