我到处搜索,无法找到一个好的答案。我正在尝试提取内容
<div class="directions">
并将其打印出来。是否有一种简单的方法来打印出类的内容,而不是使用jsoup?
<div class="directions">
<h3>Directions</h3>
<div class="directLeft" itemprop="recipeInstructions">
<div id="msgDirections" style="display:none"></div>
<ol>
<li><span class="plaincharacterwrap break">Preheat oven to 275 degrees F (135 degrees C).</span></li>
<li><span class="plaincharacterwrap break">Combine the margarine, salt, garlic salt, Worcestershire sauce and pumpkin seeds. Mix thoroughly and place in shallow baking dish.</span></li>
<li><span class="plaincharacterwrap break">Bake for 1 hour, stirring occasionally.</span></li>
</ol>
<a href="/recipe/spiced-pumpkin-seeds/kitchenview.aspx" id="lnkKitchenView" class="linkPrefersSupportingMembership rp-btn crnrs3px grayBrdr clr-gray gray fl-left">Kitchen-Friendly View</a>
</div>
</div>