Answer the question
In order to leave comments, you need to log in
How to parse a certain piece of code?
<html>
<body>
<div id=new_class1>
<style type="text/css"> ..... </style>
<p> Раз </p>
Два
<> Три </p>
<div class="new_class2>....</div>
</div>
</body>
</html>
<style type="text/css">
to <div class="new_class2>....</div>
to get: Answer the question
In order to leave comments, you need to log in
It's hard to read line by line. The lines between <style type="text/css">
and <div class="new_class2>....</div>
drive into a separate array, and parse it. For example, remove tags with regular expressions, leaving the text
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question