Есть HTML код:
<html>
<head><meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<style type="text/css">
<!--
span.cls_004{font-family:Arial,serif;font-size:18.1px;color:rgb(255,255,255);font-weight:bold;font-style:normal;text-decoration: none}
-->
</style>
<script type="text/javascript" src="Utah motorcycleFactSheet2012_files/wz_jsgraphics.js"></script>
</head>
<body>
<div style="position:absolute;left:50%;margin-left:-306px;top:0px;width:612px;height:792px;border-style:outset;overflow:hidden">
<div style="position:absolute;left:0px;top:0px">
<img src="Utah motorcycleFactSheet2012_files/background1.jpg" width=612 height=792></div>
<div style="position:absolute;left:29.88px;top:32.86px" class="cls_004"><span class="cls_004">2012 Utah Crash Facts</span></div>
</div>
</body>
</html>
Из которого нужно удалить следующие HTML теги:
<html>
<head><meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<script type="text/javascript" src="Utah motorcycleFactSheet2012_files/wz_jsgraphics.js"></script>
</head>
<body>
</body>
</html>
Вот начал, а дальше не знаю что делать:
//if(isset($_POST['k1'])){}
//$k1 = $_POST['k1'];
include('simple_html_dom.php');
$html = new simple_html_dom();
$html->load('<html>
<head><meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<script type="text/javascript" src="Utah motorcycleFactSheet2012_files/wz_jsgraphics.js"></script>
</head>
<body>
</body>
</html>');
$element = $html->find("html");
$element = null;
echo $html->save();