You have to first get the a attribute innerhtml then take total innerhtml with using substring you can have your there part ..
$(document).ready(function () {
var getA=$("p >a").text();
var getA=getA.length;
var takeTotal=$("p").text();
var result=takeTotal.substring(get);
alert(result);
});