You can also turn the string into a ByteStream object:

  # this... 
  use Mojo::ByteStream "b";
  my $x = b "hello!";
  $c->stash(x => $x);

  # or this...
  $c->stash(x => $c->b("Hello!"));


https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Plugin/DefaultHelpers.pm#b


On Monday, November 23, 2015 at 9:45:32 AM UTC+1, Helmut Wollmersdorfer 
wrote:
>
>
>
> Am Montag, 23. November 2015 09:22:04 UTC+1 schrieb Luc didry:
>>
>>
>> Simple: just use <%== instead of <%= (which XML escape the result). 
>>
>
> OMG, forgot this  feature.
>
> Thx
>
> Helmut Wollmersdorfer
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to