0

I have a DIV element where the Inner HTML is inserting

&amp

into my Inner Text and it's getting rendered on the page.

innerHTML (And this exactly what gets rendered on the page:)

backbone that helps you collaborate in the ‘we’ space through the same familiar Outlook environment that you use in the ‘me’ space.

However the InnerText is correct.

innerText (this is the actual string stored in the database:)

backbone that helps you collaborate in the ‘we’ space.

This happens in all browsers tested.

This is the actual div tag and it's also using angular: enter image description here

EB.
  • 2,627
  • 8
  • 35
  • 55
  • 1
    Can you add your JS code here so we can have a look or even better yet add it to https://jsfiddle.net/ – user742736 Oct 12 '17 at 20:55
  • 1
    This was already answered: https://stackoverflow.com/questions/31290396/angularjs-how-to-decode-html-entities-in-html https://stackoverflow.com/questions/26064309/decode-html-entity-in-angular-js https://stackoverflow.com/questions/21919533/using-html-entities-within-angular-strings – Andreas Rau Oct 12 '17 at 21:00

0 Answers0