With regards to
Cross-Site Scripting (XSS),
HTML::Mason is an example of a framework that offers built-in functionality for sanitizing output using the
default_escape_flags option.
Furthermore, the
Open Web Application Security Project (OWASP) addresses web security and has a
guide on how to create secure web applications.
--
print map{chr}unpack(q{A3}x24,q{074117115116032097110111116104101114032080101114108032104097099107101114})