Reputation: 119
I want to get the value of the title and description of the label in blogspot after optimizing the meta tag as below
<title>Nhà đất Sơn Nghĩa bán nhà quận Gò vấp</title>
<meta content='Bán nhà Gò Vấp giá rẻ, mua nhà ở Gò Vấp chính chủ sổ hồng sổ đỏ tại nhadatsonnghia.com' name='description'/>
I tried <data:title/>
and <data:description/>
like this document but it's not working. Do you have any suggestions for me?
Thanks in advance :D
Upvotes: 1
Views: 815
Reputation:
<data:view.title/>
The title of current page.
<data:view.search.label/>
The label name of current label page.
<data:blog.metaDescription/>
The search description of the blog on multiple posts pages or the search description of post on single post pages.
Upvotes: 2
Reputation: 362
var t = document.title;
alert(t);
var x = document.getElementsByTagName("META");
var txt = "";
var i;
for (i = 0; i < x.length; i++) {
txt = txt + "Content of "+(i+1)+". meta tag: "+x[i].content+"<br>";
alert(txt);
}
Upvotes: 0