我想錨文本和顯示文本內的p標籤獲取文本中的錨標籤
例如: -
<p class="post">
some content
<span more-description="here is read more description">...</span>
<a class="readmore">Read More</a>
</p>
因此點擊後「更多」的文本。
新的源代碼將是: -
<p class="post">
some content
<span class="full">here is read more description</spn>
<span more-description="here is read more description" style="display:none;">...</span>
<a class="readmore">Read More</a>
</p>