I have an angular.js application in which I display some elements in a table.
In those elements, I have a name and in some case, I change it to add <b> and </b> to have it in bold. But it's displayed like a string and not like HTML code.
So I would replace all the text on the page between the <b> and the </b> with the same text but in bold.
I try to do this:
var pattern = new RegExp(nameFilter, "g");
e.name = e.name.replace(pattern, '<span class="highlighted">' + nameFilter + '</span>');
But it's always displayed like a string.
Do you know what do to have the text in bold?