I have some json array with data, one of the keys has the following format
x = "<sometext>"
I want to display it as "<sometext>"
Right now it gets displayed as <sometext>
I have in html
<tr data-ng-repeat ="d in data">
<td>{{d.x}}</td>
</tr>
I saw in another thread that you remove the quotations by doing the following
var someStr = 'He said "Hello, my name is Foo"';
console.log(someStr.replace(/['"]+/g, ''));
I tried doing
{{d.x.replace(/</, '<').replace(/>/, '>')}}
but it all it does is display on html, the following
{{d.x.replace(/</, '<').replace(/>/, '>')}}