<h2 class="post-title"> ==$0
"Title of the post"
<span class="post-date">1 jan 2000</span>
<span class="post-tag">Tag</span>
</h2>
What I want is only the post title "Title of the post"
Title = document.getElementsByClassName("post-title");
Title[0].innerText
What I'm getting is "Title of the post 1 jan 2000 Tag"
` element?
– caramba Nov 02 '20 at 19:34