Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better escaping test
  • Loading branch information
kraih committed Apr 24, 2012
1 parent 2200cbb commit 37a058a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@ This file documents the revision history for Perl extension Mojolicious.

2.89 2012-04-25
- Improved documentation.
- Improved tests.

2.88 2012-04-24
- Improved documentation.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Template.pm
Expand Up @@ -423,7 +423,7 @@ the default in L<Mojolicious> C<.ep> templates for example.
L<Mojo::ByteStream> objects are always excluded from automatic escaping.
<%= Mojo::ByteStream->new('<div>excluded!</div>') %>
<%= b('<div>excluded!</div>') %>
=head2 Trimming
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -114,7 +114,7 @@ which is the default to prevent XSS attacks against your application.

Only L<Mojo::ByteStream> objects are excluded from automatic escaping.

<%= Mojo::ByteStream->new('<p>test</p>') %>
<%= b('<p>test</p>') %>

You can also add an additional equal sign to the end of a tag to have it
automatically remove all surrounding whitespace, this allows free indenting
Expand Down
3 changes: 2 additions & 1 deletion t/mojolicious/layouted_lite_app.t
Expand Up @@ -269,10 +269,11 @@ Exception happened!
Not found happened!
@@ template_inheritance.html.ep
% use Mojo::ByteStream 'b';
% layout 'template_inheritance';
% title 'Works!';
<% content header => begin =%>
<%= Mojo::ByteStream->new('<br>') %>
<%= b('<br>') %>
<% end =%>
<% content sidebar => begin =%>
Sidebar!
Expand Down

0 comments on commit 37a058a

Please sign in to comment.