Skip to content

moznion/p6-HTML-Escape

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
t
 
 
 
 
 
 
 
 
 
 
 
 

Build Status

NAME

HTML::Escape - Utility of HTML escaping

SYNOPSIS

use HTML::Escape;

escape-html("<^o^>"); # => '&lt;^o^&gt;'

DESCRIPTION

HTML::Escape provides a function which escapes HTML's special characters. It performs a similar function to PHP's htmlspecialchars.

This module is perl6 port of HTML::Escape of perl5.

Functions

escape-html(Str $raw-str) returns Str

Escapes HTML's special characters in given string.

TODO

  • Support unescaping function?

SEE ALSO

HTML::Escape of perl5

COPYRIGHT AND LICENSE

Copyright 2017- moznion <moznion@gmail.com>

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

And original perl5's HTML::Escape is

This software is copyright (c) 2012 by Tokuhiro Matsuno E<lt>tokuhirom AAJKLFJEF@ GMAIL COME<gt>.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

About

Utility of HTML escaping for perl6

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Other 100.0%