Twig escapes tags when using raw value in template I am printing fields in a node template, but Twig is escaping my tags and ruining my day.

My .tpl looks like this:

  &lt;blockquote&gt;
    &lt;p class="title"&gt;{{ content.field_myfield.0 }}&lt;/p&gt;
  &lt;/blockquote&gt;


I want to strip all tags from the original field and then "wrap" the field in a paragraph tag with the title class.  I found out how to get the raw value without tags based on this question.

However, this is the HTML that is actually output:

&lt;blockquote&gt;
  &lt;p class="title"&gt;&lt;/p&gt;&lt;p&gt;When you wish upon a star&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
&lt;/blockquote&gt;


What am I doing wrong?
You can use the following code below:

{{content.field_myfield.0|render|striptags|trim}}



  render:  The striptags filter strips SGML/XML tags and replaces
  adjacent whitespace by one space.  You can also provide tags which
  should not be stripped:


{{ content.field_myfield.0|striptags('&lt;br&gt;&lt;p&gt;')}}


trim: The trim filter strips whitespace (or other characters) from the beginning and end of a string:

{{ '  I like Twig.  '|trim }}

{# outputs 'I like Twig.' #}

{{ '  I like Twig.'|trim('.') }}

{# outputs '  I like Twig' #}

{{ '  I like Twig.  '|trim(side='left') }}

{# outputs 'I like Twig.  ' #}

{{ '  I like Twig.  '|trim(' ', 'right') }}

{# outputs '  I like Twig.' #}


The example above used from the twig website.