SO - 18460764

by Arun P Johny

HTML

<div><strong>1954</strong>im the text</div>

JavaScript

jQuery(function(){
    var a = '<strong>1954</strong>im the text';
    var pageNum = $(a).filter('strong').text();
    alert(pageNum);
})