I have an AJAX comment that returns the data of a published comment, I also have @mention built-in functionality, the server side processes @mentions and does str_replace for the mentioned users, replacing their names with a tag inside the response, for example:
{ data: { comment: "<a href=\"profile/derp\">Username</a> hey what up" } }
However, I cannot find in the documentation how to allow nunjucks to print this as real HTML, it avoids it and displays the code instead of turning it into a real tag.
Does anyone know how I can allow this to be printed as the actual tag?
source share