Content selection custom attributes

Content selection custom attributes

I am trying to extract the value JHON DOE from this span tag and I am unable to figure out how to do this without a brute force of searching for each element and doing a manual string match.

Any thoughts?
Thanks
Ivan 

< span data-bind= 'text: pname()' >JHON DOE </ span >