Permalink
Browse files

Merge pull request #307 from 2shortplanks/master

Document encode_html
  • Loading branch information...
2 parents f82b691 + 2868f91 commit ce974d0cb776c4d120e419159e1376d3d759510d @miyagawa miyagawa committed Jul 25, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/Plack/Util.pm
View
@@ -525,6 +525,13 @@ Creates an instant object that can react to methods passed in the
constructor. Handy to create when you need to create an IO stream
object for input or errors.
+=item encode_html
+
+ my $encoded_string = Plack::Util::encode( $string );
+
+Entity encodes C<<>, C<< > >>, C<&>, C<"> and C<'> in the input string
+and returns it.
+
=item response_cb
See L<Plack::Middleware/RESPONSE CALLBACK> for details.

0 comments on commit ce974d0

Please sign in to comment.