Twig escapes tags when using raw value in template
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.