How do I convert special characters into html in twig I have some list items in drupal 8 which created by item_list template.I am sending some &lt;a&gt; tagged data to the item_list template. My idea was to get the output as &lt;a href="/this-is-new.html"&gt;This is new page&lt;/a&gt;.

But it returns the output as &lt;li&gt;&amp;lt;a href="/this-is-new.html"&amp;gt;This is new page&amp;lt;/a&amp;gt;&lt;/li&gt;.

I need to print this in a twig template. But with the output I had it renders as a string in the template not as a html anchor tag. I needed to view a link to another page in template. But all I am getting is a string with the &lt;a href="/this-is-new.html"&gt;This is new page&lt;/a&gt;. What should I do?
NOTE: this should be avoided as it is considered bad practice as mentioned in the comments, leaving here as an example to avoided
Inside your twig template try this
  {{ var|raw }}

where var is the variable being printed.
For more information here