だから私は simple_html_dom を使用しています:
http://simplehtmldom.sourceforge.net/
私はこのコードを持っています:
$j = '
<itemBody>
<div>films - to watch (Simple Present)<br/>
<textEntryInteraction responseIdentifier="RESPONSE_1"/>
</div>
</itemBody>';
$dom = new simple_html_dom;
$dom->load($j, TRUE);
echo $dom->innertext;
これは次を返します。
<itembody>
<div>films - to watch (Simple Present)<br/>
<textentryinteraction responseidentifier="RESPONSE_1"/>
</div>
</itembody>
itembody タグを取り除かなかったのはなぜですか? (小文字になっただけです。)