use strict; use warnings; use Test::More; use HTML::FormHandler::Render::Util ('process_attrs'); # explicitly test process_attrs because it's used in so many places in HFH is(process_attrs({ class => '" onclick="alert(1)'}), ' class="" onclick="alert(1)"', "attribute value properly encoded according to HTML attribute context"); done_testing;