JSFiddle - React, Tailwind, and code Playground

HTML

<p>Bier, Eric A. (1994). A Taxonomy of See-Through Tools</p>

JavaScript

var para = document.getElementsByTagName("p"),
    i = 0;

var value = para[i].firstChild.nodeValue;

if(value.indexOf('Eric')>=0) {
    alert(value);
}