Я хочу выбрать переменную внутри тега script
, но ближайший ...
<div id='Auth-Sec'>
<div class='LinkList'>
<div class='widget-content'>
<i class='get-rank'/>
<i class='get-about'/>
<b:tag name='script' type='text/javascript'>
var snapAuthor=AuthorsInfo.filter(function(a){return a.name==='<data:title/>'})[0];
if(snapAuthor!==undefined){
snapAuthor.provided=true;
<b:loop values='data:links' var='link'>
<b:if cond='data:link.name contains "-ad"'>
snapAuthor['<data:link.name/>']='<data:link.target.jsEscaped/>';
<b:else/>
<b:switch var='data:link.name'>
<b:case value='rank'/>snapAuthor.rank='<data:link.target.escaped/>';
<b:case value='about'/>snapAuthor.about='<data:link.target.escaped/>';
<b:default/>snapAuthor.links['<data:link.name/>']='<data:link.target/>';
</b:switch>
</b:if>
</b:loop>
}</b:tag>
</div>
</div>
</div>
$("#Auth-Sec .LinkList").each(function(){
var e = $(this),
nameClass = e.find(".widget-content"),
getDataTitle = e.find(nameClass).prev('.headline').data('title'),
getRankName = e.find(nameClass).nextAll('script');
var gatVaribale = $(getRankName).find(snapAuthor['rank']) // i want get it
snapAuthor.name = getDataTitle;
var setSnapName = snapAuthor.name,
setSnapRank = snapAuthor['rank'],
setSnapAbout = snapAuthor['about'];
if (setSnapName === AuthorName){
console.log(gatVaribale)
}
});