{"payload":{"allShortcutsEnabled":false,"fileTree":{"actionpack/test/template":{"items":[{"name":"active_record_helper_test.rb","path":"actionpack/test/template/active_record_helper_test.rb","contentType":"file"},{"name":"asset_tag_helper_test.rb","path":"actionpack/test/template/asset_tag_helper_test.rb","contentType":"file"},{"name":"atom_feed_helper_test.rb","path":"actionpack/test/template/atom_feed_helper_test.rb","contentType":"file"},{"name":"benchmark_helper_test.rb","path":"actionpack/test/template/benchmark_helper_test.rb","contentType":"file"},{"name":"compiled_templates_test.rb","path":"actionpack/test/template/compiled_templates_test.rb","contentType":"file"},{"name":"date_helper_test.rb","path":"actionpack/test/template/date_helper_test.rb","contentType":"file"},{"name":"deprecate_ivars_test.rb","path":"actionpack/test/template/deprecate_ivars_test.rb","contentType":"file"},{"name":"erb_util_test.rb","path":"actionpack/test/template/erb_util_test.rb","contentType":"file"},{"name":"form_helper_test.rb","path":"actionpack/test/template/form_helper_test.rb","contentType":"file"},{"name":"form_options_helper_test.rb","path":"actionpack/test/template/form_options_helper_test.rb","contentType":"file"},{"name":"form_tag_helper_test.rb","path":"actionpack/test/template/form_tag_helper_test.rb","contentType":"file"},{"name":"javascript_helper_test.rb","path":"actionpack/test/template/javascript_helper_test.rb","contentType":"file"},{"name":"number_helper_test.rb","path":"actionpack/test/template/number_helper_test.rb","contentType":"file"},{"name":"prototype_helper_test.rb","path":"actionpack/test/template/prototype_helper_test.rb","contentType":"file"},{"name":"sanitize_helper_test.rb","path":"actionpack/test/template/sanitize_helper_test.rb","contentType":"file"},{"name":"scriptaculous_helper_test.rb","path":"actionpack/test/template/scriptaculous_helper_test.rb","contentType":"file"},{"name":"tag_helper_test.rb","path":"actionpack/test/template/tag_helper_test.rb","contentType":"file"},{"name":"text_helper_test.rb","path":"actionpack/test/template/text_helper_test.rb","contentType":"file"},{"name":"url_helper_test.rb","path":"actionpack/test/template/url_helper_test.rb","contentType":"file"}],"totalCount":19},"actionpack/test":{"items":[{"name":"activerecord","path":"actionpack/test/activerecord","contentType":"directory"},{"name":"controller","path":"actionpack/test/controller","contentType":"directory"},{"name":"fixtures","path":"actionpack/test/fixtures","contentType":"directory"},{"name":"template","path":"actionpack/test/template","contentType":"directory"},{"name":"abstract_unit.rb","path":"actionpack/test/abstract_unit.rb","contentType":"file"},{"name":"action_view_test.rb","path":"actionpack/test/action_view_test.rb","contentType":"file"},{"name":"active_record_unit.rb","path":"actionpack/test/active_record_unit.rb","contentType":"file"},{"name":"testing_sandbox.rb","path":"actionpack/test/testing_sandbox.rb","contentType":"file"}],"totalCount":8},"actionpack":{"items":[{"name":"lib","path":"actionpack/lib","contentType":"directory"},{"name":"test","path":"actionpack/test","contentType":"directory"},{"name":"CHANGELOG","path":"actionpack/CHANGELOG","contentType":"file"},{"name":"MIT-LICENSE","path":"actionpack/MIT-LICENSE","contentType":"file"},{"name":"README","path":"actionpack/README","contentType":"file"},{"name":"RUNNING_UNIT_TESTS","path":"actionpack/RUNNING_UNIT_TESTS","contentType":"file"},{"name":"Rakefile","path":"actionpack/Rakefile","contentType":"file"},{"name":"install.rb","path":"actionpack/install.rb","contentType":"file"}],"totalCount":8},"":{"items":[{"name":"actionmailer","path":"actionmailer","contentType":"directory"},{"name":"actionpack","path":"actionpack","contentType":"directory"},{"name":"activemodel","path":"activemodel","contentType":"directory"},{"name":"activerecord","path":"activerecord","contentType":"directory"},{"name":"activeresource","path":"activeresource","contentType":"directory"},{"name":"activesupport","path":"activesupport","contentType":"directory"},{"name":"railties","path":"railties","contentType":"directory"},{"name":"Rakefile","path":"Rakefile","contentType":"file"},{"name":"cleanlogs.sh","path":"cleanlogs.sh","contentType":"file"},{"name":"pushgems.rb","path":"pushgems.rb","contentType":"file"},{"name":"release.rb","path":"release.rb","contentType":"file"}],"totalCount":11}},"fileTreeProcessingTime":18.06085,"foldersToFetch":[],"repo":{"id":8514,"defaultBranch":"main","name":"rails","ownerLogin":"rails","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2008-04-11T02:19:47.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/4223?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"2-0-stable","listCacheKey":"v0:1710518410.0","canEdit":false,"refType":"branch","currentOid":"81d828a14c82b882e31612431a56f830bdc1076f"},"path":"actionpack/test/template/sanitize_helper_test.rb","currentUser":null,"blob":{"rawLines":["require \"#{File.dirname(__FILE__)}/../abstract_unit\"","require \"#{File.dirname(__FILE__)}/../testing_sandbox\"","","# The exhaustive tests are in test/controller/html/sanitizer_test.rb.","# This tests the that the helpers hook up correctly to the sanitizer classes.","class SanitizeHelperTest < Test::Unit::TestCase"," include ActionView::Helpers::SanitizeHelper"," include ActionView::Helpers::TagHelper"," include TestingSandbox",""," def test_strip_links"," assert_equal \"Dont touch me\", strip_links(\"Dont touch me\")"," assert_equal \"on my mind\\nall day long\")"," assert_equal \"0wn3d\", strip_links(\"0wn3d\") "," assert_equal \"Magic\", strip_links(\"Magic\") "," assert_equal \"FrrFox\", strip_links(\"
This is a test.
\"))"," assert_equal(\"Weirdos\", strip_tags(\"Wei<a onclick='alert(document.cookie);'/>rdos\"))"," assert_equal(\"This is a test.\", strip_tags(\"This is a test.\"))"," assert_equal("," %{This is a test.\\n\\n\\nIt no longer contains any HTML.\\n}, strip_tags("," %{It no longer contains any HTML.