hello everyone javascript don't add the class to html

```
$(".ocmessage").each(function(){
    var text = $(this).find('p').html();
    if(strpos(text,"<b>"+name+"</b>")!==false) $(this).addClass("quoteme");
});

```

this code should detect if in `<p>...</p>` there are name of some member and if there is javascript should add class `quoteme`

how can i fix it?