libhtml-defang-perl - cleans HTML and CSS of scripting, executable contents and XSS attacks

Distribution: Debian 8 (Jessie)
Repository: Debian Main amd64
Package name: libhtml-defang-perl
Package version: 1.04
Package release: 2
Package architecture: all
Package type: deb
Installed size: 95 B
Download size: 33.47 KB
Official Mirror:
HTML::Defang accepts an input HTML and/or CSS string and removes any executable code including scripting, embedded objects, applets, etc., and neutralises any XSS attacks. A whitelist based approach is used which means only HTML known to be safe is allowed through. HTML::Defang uses a custom html tag parser. The parser has been designed and tested to work with nasty real world html and to try and emulate as close as possible what browsers actually do with strange looking constructs. The test suite has been built based on examples from a range of sources such as <> and <> to ensure that as many as possible XSS attack scenarios have been dealt with.




    Source package: libhtml-defang-perl

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install libhtml-defang-perl deb package:
      # sudo apt-get install libhtml-defang-perl


    • /usr/share/doc/libhtml-defang-perl/README
    • /usr/share/doc/libhtml-defang-perl/buildinfo_all.gz
    • /usr/share/doc/libhtml-defang-perl/changelog.Debian.gz
    • /usr/share/doc/libhtml-defang-perl/changelog.gz
    • /usr/share/doc/libhtml-defang-perl/copyright
    • /usr/share/man/man3/HTML::Defang.3pm.gz
    • /usr/share/perl5/HTML/


    2014-05-21 - Jonas Smedegaard <> libhtml-defang-perl (1.04-2) unstable; urgency=low [ Salvatore Bonaccorso ] * Change Vcs-Git to use canonical hostname ( [ Jonas Smedegaard ] * Add README.source emphasizing file as *not* a show-stopper for contributions, referring to wiki page for details. * Bump to standards-version 3.9.5. * Fix use canonical Vcs-Git URL. * Update watch file to use URL. * Update copyright info: + Extend coverage of packaging, and bump its licensing to GPL-3+.

    2012-07-19 - Jonas Smedegaard <> libhtml-defang-perl (1.04-1) unstable; urgency=low * Friendly takeover (via Debian Perl Group). Thanks to Ivan for past contributions. * Repackage using CDBS. Build-depend on cdbs, devscripts and dh-buildinfo. Relax to build-depend unversioned on debhelper. * Bump standards-version to 3.9.3. * Bump debhelper compatibility level to 8. * Use dpkg source format 3.0 (quilt). * Add git-buildpackage config enabling pristine-tar and signed tags. Git-ignore quilt .pc subdir. * Shorten short description, and rewrap long description at 72 chars. * Add Vcs-* paragraphs. * Rewrite copyright file using format 1.0.

    2010-03-24 - Ivan Kohler <> libhtml-defang-perl (1.02-1) unstable; urgency=low * Initial Release (closes: Bug#575285).