Search code examples
htmlangularjshtml-escape-characters

HTML content is displaying as plain text


I am trying to display a link using <a> in a modal window, but the content is showing as a plain text; however, the same text in another modal window is displaying properly.

This is my code:

<span data-ng-if="error.message">{{error.message}}</span>

Solution

  • for a link in HTML the code should be

    <a href="{yourURL}">TEXT HERE</a>

    But it would be more helpful if you posted up your code for us to see where the mistake is.