PHP Classes

File: test/expect/simple.txt

Recommend this page to a friend!
  Classes of Manuel Lemos  >  Secure HTML parser and filter  >  test/expect/simple.txt  >  Download  
File: test/expect/simple.txt
Role: Auxiliary data
Content type: text/plain
Description: Unit test expected results
Class: Secure HTML parser and filter
Parse and filter insecure HTML tags and CSS styles
Author: By
Last change:
Date: 13 years ago
Size: 3,782 bytes
 

Contents

Class file image Download
array(5) { ["Type"]=> string(7) "DOCTYPE" ["Root"]=> string(4) "HTML" ["Identifier"]=> string(38) "-//W3C//DTD HTML 4.01 Transitional//EN" ["Availability"]=> string(6) "PUBLIC" ["Position"]=> int(0) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(63) } array(4) { ["Type"]=> string(3) "TAG" ["Name"]=> string(4) "html" ["Attributes"]=> array(1) { ["lang"]=> string(2) "en" } ["Position"]=> int(64) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(80) } array(3) { ["Type"]=> string(3) "TAG" ["Name"]=> string(4) "head" ["Position"]=> int(81) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(87) } array(3) { ["Type"]=> string(3) "TAG" ["Name"]=> string(5) "title" ["Position"]=> int(88) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(6) "Simple" ["Position"]=> int(95) } array(3) { ["Type"]=> string(6) "ENDTAG" ["Name"]=> string(5) "title" ["Position"]=> int(101) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(109) } array(4) { ["Type"]=> string(3) "TAG" ["Name"]=> string(6) "script" ["Attributes"]=> array(1) { ["type"]=> string(15) "text/javascript" } ["Position"]=> int(110) } array(4) { ["Type"]=> string(7) "COMMENT" ["Comment"]=> string(49) " function hello() { alert('Hello world!'); } // " ["Position"]=> int(141) ["CommentPosition"]=> int(145) } array(3) { ["Type"]=> string(6) "ENDTAG" ["Name"]=> string(6) "script" ["Position"]=> int(197) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(206) } array(4) { ["Type"]=> string(3) "TAG" ["Name"]=> string(5) "style" ["Attributes"]=> array(1) { ["type"]=> string(8) "text/css" } ["Position"]=> int(207) } array(4) { ["Type"]=> string(7) "COMMENT" ["Comment"]=> string(30) " .hello { font-weight: bold } " ["Position"]=> int(230) ["CommentPosition"]=> int(234) } array(3) { ["Type"]=> string(6) "ENDTAG" ["Name"]=> string(5) "style" ["Position"]=> int(267) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(275) } array(3) { ["Type"]=> string(6) "ENDTAG" ["Name"]=> string(4) "head" ["Position"]=> int(276) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(283) } array(4) { ["Type"]=> string(3) "TAG" ["Name"]=> string(4) "body" ["Attributes"]=> array(1) { ["onload"]=> string(7) "hello()" } ["Position"]=> int(284) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(307) } array(4) { ["Type"]=> string(3) "TAG" ["Name"]=> string(1) "p" ["Attributes"]=> array(1) { ["class"]=> string(5) "hello" } ["Position"]=> int(308) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(12) "Hello world!" ["Position"]=> int(323) } array(3) { ["Type"]=> string(6) "ENDTAG" ["Name"]=> string(1) "p" ["Position"]=> int(335) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(339) } array(3) { ["Type"]=> string(6) "ENDTAG" ["Name"]=> string(4) "body" ["Position"]=> int(340) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(347) } array(3) { ["Type"]=> string(6) "ENDTAG" ["Name"]=> string(4) "html" ["Position"]=> int(348) } array(3) { ["Type"]=> string(4) "DATA" ["Data"]=> string(1) " " ["Position"]=> int(355) }