PageRenderTime 52ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/.metadata/.plugins/org.eclipse.php.core/__language__/3a86f0e4/tidy.php

https://github.com/MattBridgeman/Discovery-project
PHP | 675 lines | 193 code | 76 blank | 406 comment | 0 complexity | 3d28897e11f5b340b2273f575fad3137 MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1
  1. <?php
  2. // Start of tidy v.2.0
  3. class tidy {
  4. /**
  5. * Returns the value of the specified configuration option for the tidy document
  6. * @link http://www.php.net/manual/en/tidy.getopt.php
  7. * @param option string <p>
  8. * You will find a list with each configuration option and their types
  9. * at: &url.tidy.conf;.
  10. * </p>
  11. * @return mixed the value of the specified option.
  12. * The return type depends on the type of the specified one.
  13. */
  14. public function getOpt ($option) {}
  15. /**
  16. * Execute configured cleanup and repair operations on parsed markup
  17. * @link http://www.php.net/manual/en/tidy.cleanrepair.php
  18. * @return bool Returns true on success or false on failure.
  19. */
  20. public function cleanRepair () {}
  21. /**
  22. * Parse markup in file or URI
  23. * @link http://www.php.net/manual/en/tidy.parsefile.php
  24. * @param filename string <p>
  25. * If the filename parameter is given, this function
  26. * will also read that file and initialize the object with the file,
  27. * acting like tidy_parse_file.
  28. * </p>
  29. * @param config mixed[optional] <p>
  30. * The config config can be passed either as an
  31. * array or as a string. If a string is passed, it is interpreted as the
  32. * name of the configuration file, otherwise, it is interpreted as the
  33. * options themselves.
  34. * </p>
  35. * <p>
  36. * For an explanation about each option, see
  37. * &url.tidy.conf;.
  38. * </p>
  39. * @param encoding string[optional] <p>
  40. * The encoding parameter sets the encoding for
  41. * input/output documents. The possible values for encoding are:
  42. * ascii, latin0, latin1,
  43. * raw, utf8, iso2022,
  44. * mac, win1252, ibm858,
  45. * utf16, utf16le, utf16be,
  46. * big5, and shiftjis.
  47. * </p>
  48. * @param use_include_path bool[optional] <p>
  49. * Search for the file in the include_path.
  50. * </p>
  51. * @return bool Returns true on success or false on failure.
  52. */
  53. public function parseFile ($filename, $config = null, $encoding = null, $use_include_path = null) {}
  54. /**
  55. * Parse a document stored in a string
  56. * @link http://www.php.net/manual/en/tidy.parsestring.php
  57. * @param input string <p>
  58. * The data to be parsed.
  59. * </p>
  60. * @param config mixed[optional] <p>
  61. * The config config can be passed either as an
  62. * array or as a string. If a string is passed, it is interpreted as the
  63. * name of the configuration file, otherwise, it is interpreted as the
  64. * options themselves.
  65. * </p>
  66. * <p>
  67. * For an explanation about each option, visit &url.tidy.conf;.
  68. * </p>
  69. * @param encoding string[optional] <p>
  70. * The encoding parameter sets the encoding for
  71. * input/output documents. The possible values for encoding are:
  72. * ascii, latin0, latin1,
  73. * raw, utf8, iso2022,
  74. * mac, win1252, ibm858,
  75. * utf16, utf16le, utf16be,
  76. * big5, and shiftjis.
  77. * </p>
  78. * @return bool a new tidy instance.
  79. */
  80. public function parseString ($input, $config = null, $encoding = null) {}
  81. /**
  82. * Repair a string using an optionally provided configuration file
  83. * @link http://www.php.net/manual/en/tidy.repairstring.php
  84. * @param data string <p>
  85. * The data to be repaired.
  86. * </p>
  87. * @param config mixed[optional] <p>
  88. * The config config can be passed either as an
  89. * array or as a string. If a string is passed, it is interpreted as the
  90. * name of the configuration file, otherwise, it is interpreted as the
  91. * options themselves.
  92. * </p>
  93. * <p>
  94. * Check &url.tidy.conf; for
  95. * an explanation about each option.
  96. * </p>
  97. * @param encoding string[optional] <p>
  98. * The encoding parameter sets the encoding for
  99. * input/output documents. The possible values for encoding are:
  100. * ascii, latin0, latin1,
  101. * raw, utf8, iso2022,
  102. * mac, win1252, ibm858,
  103. * utf16, utf16le, utf16be,
  104. * big5, and shiftjis.
  105. * </p>
  106. * @return string the repaired string.
  107. */
  108. public function repairString ($data, $config = null, $encoding = null) {}
  109. /**
  110. * Repair a file and return it as a string
  111. * @link http://www.php.net/manual/en/tidy.repairfile.php
  112. * @param filename string <p>
  113. * The file to be repaired.
  114. * </p>
  115. * @param config mixed[optional] <p>
  116. * The config config can be passed either as an
  117. * array or as a string. If a string is passed, it is interpreted as the
  118. * name of the configuration file, otherwise, it is interpreted as the
  119. * options themselves.
  120. * </p>
  121. * <p>
  122. * Check http://tidy.sourceforge.net/docs/quickref.html for an
  123. * explanation about each option.
  124. * </p>
  125. * @param encoding string[optional] <p>
  126. * The encoding parameter sets the encoding for
  127. * input/output documents. The possible values for encoding are:
  128. * ascii, latin0, latin1,
  129. * raw, utf8, iso2022,
  130. * mac, win1252, ibm858,
  131. * utf16, utf16le, utf16be,
  132. * big5, and shiftjis.
  133. * </p>
  134. * @param use_include_path bool[optional] <p>
  135. * Search for the file in the include_path.
  136. * </p>
  137. * @return string the repaired contents as a string.
  138. */
  139. public function repairFile ($filename, $config = null, $encoding = null, $use_include_path = null) {}
  140. /**
  141. * Run configured diagnostics on parsed and repaired markup
  142. * @link http://www.php.net/manual/en/function.tidy-diagnose.php
  143. * @return bool Returns true on success or false on failure.
  144. */
  145. public function diagnose () {}
  146. /**
  147. * Get release date (version) for Tidy library
  148. * @link http://www.php.net/manual/en/tidy.getrelease.php
  149. * @return string a string with the release date of the Tidy library.
  150. */
  151. public function getRelease () {}
  152. /**
  153. * Get current Tidy configuration
  154. * @link http://www.php.net/manual/en/tidy.getconfig.php
  155. * @return array an array of configuration options.
  156. * </p>
  157. * <p>
  158. * For an explanation about each option, visit &url.tidy.conf;.
  159. */
  160. public function getConfig () {}
  161. /**
  162. * Get status of specified document
  163. * @link http://www.php.net/manual/en/tidy.getstatus.php
  164. * @return int 0 if no error/warning was raised, 1 for warnings or accessibility
  165. * errors, or 2 for errors.
  166. */
  167. public function getStatus () {}
  168. public function getHtmlVer () {}
  169. /**
  170. * Returns the documentation for the given option name
  171. * @link http://www.php.net/manual/en/tidy.getoptdoc.php
  172. * @param optname string <p>
  173. * The option name
  174. * </p>
  175. * @return string a string if the option exists and has documentation available, or
  176. * false otherwise.
  177. */
  178. public function getOptDoc ($optname) {}
  179. /**
  180. * Indicates if the document is a XHTML document
  181. * @link http://www.php.net/manual/en/tidy.isxhtml.php
  182. * @return bool This function returns true if the specified tidy
  183. * object is a XHTML document, or false otherwise.
  184. * </p>
  185. * <p>
  186. * This function is not yet implemented in the Tidylib itself, so it always
  187. * return false.
  188. */
  189. public function isXhtml () {}
  190. /**
  191. * Indicates if the document is a generic (non HTML/XHTML) XML document
  192. * @link http://www.php.net/manual/en/tidy.isxml.php
  193. * @return bool This function returns true if the specified tidy
  194. * object is a generic XML document (non HTML/XHTML),
  195. * or false otherwise.
  196. * </p>
  197. * <p>
  198. * This function is not yet implemented in the Tidylib itself, so it always
  199. * return false.
  200. */
  201. public function isXml () {}
  202. /**
  203. * Returns a <classname>tidyNode</classname> object representing the root of the tidy parse tree
  204. * @link http://www.php.net/manual/en/tidy.root.php
  205. * @return tidyNode the tidyNode object.
  206. */
  207. public function root () {}
  208. /**
  209. * Returns a <classname>tidyNode</classname> object starting from the &lt;head&gt; tag of the tidy parse tree
  210. * @link http://www.php.net/manual/en/tidy.head.php
  211. * @return tidyNode the tidyNode object.
  212. */
  213. public function head () {}
  214. /**
  215. * Returns a <classname>tidyNode</classname> object starting from the &lt;html&gt; tag of the tidy parse tree
  216. * @link http://www.php.net/manual/en/tidy.html.php
  217. * @return tidyNode the tidyNode object.
  218. */
  219. public function html () {}
  220. /**
  221. * Returns a <classname>tidyNode</classname> object starting from the &lt;body&gt; tag of the tidy parse tree
  222. * @link http://www.php.net/manual/en/tidy.body.php
  223. * @return tidyNode the detected HTML version.
  224. * </p>
  225. * <p>
  226. * This function is not yet implemented in the Tidylib itself, so it always
  227. * return 0.
  228. */
  229. public function body () {}
  230. /**
  231. * Constructs a new <classname>tidy</classname> object
  232. * @link http://www.php.net/manual/en/tidy.construct.php
  233. * @param filename string[optional] <p>
  234. * If the filename parameter is given, this function
  235. * will also read that file and initialize the object with the file,
  236. * acting like tidy_parse_file.
  237. * </p>
  238. * @param config mixed[optional] <p>
  239. * The config config can be passed either as an
  240. * array or as a string. If a string is passed, it is interpreted as the
  241. * name of the configuration file, otherwise, it is interpreted as the
  242. * options themselves.
  243. * </p>
  244. * <p>
  245. * For an explanation about each option, visit &url.tidy.conf;.
  246. * </p>
  247. * @param encoding string[optional] <p>
  248. * The encoding parameter sets the encoding for
  249. * input/output documents. The possible values for encoding are:
  250. * ascii, latin0, latin1,
  251. * raw, utf8, iso2022,
  252. * mac, win1252, ibm858,
  253. * utf16, utf16le, utf16be,
  254. * big5, and shiftjis.
  255. * </p>
  256. * @param use_include_path bool[optional] <p>
  257. * Search for the file in the include_path.
  258. * </p>
  259. * @return tidy the new tidy instance.
  260. */
  261. public function __construct ($filename = null, $config = null, $encoding = null, $use_include_path = null) {}
  262. }
  263. final class tidyNode {
  264. /**
  265. * Checks if a node has children
  266. * @link http://www.php.net/manual/en/tidynode.haschildren.php
  267. * @return bool true if the node has children, false otherwise.
  268. */
  269. public function hasChildren () {}
  270. /**
  271. * Checks if a node has siblings
  272. * @link http://www.php.net/manual/en/tidynode.hassiblings.php
  273. * @return bool true if the node has siblings, false otherwise.
  274. */
  275. public function hasSiblings () {}
  276. /**
  277. * Checks if a node represents a comment
  278. * @link http://www.php.net/manual/en/tidynode.iscomment.php
  279. * @return bool true if the node is a comment, false otherwise.
  280. */
  281. public function isComment () {}
  282. /**
  283. * Checks if a node is part of a HTML document
  284. * @link http://www.php.net/manual/en/tidynode.ishtml.php
  285. * @return bool true if the node is part of a HTML document, false otherwise.
  286. */
  287. public function isHtml () {}
  288. /**
  289. * Checks if a node represents text (no markup)
  290. * @link http://www.php.net/manual/en/tidynode.istext.php
  291. * @return bool true if the node represent a text, false otherwise.
  292. */
  293. public function isText () {}
  294. /**
  295. * Checks if this node is JSTE
  296. * @link http://www.php.net/manual/en/tidynode.isjste.php
  297. * @return bool true if the node is JSTE, false otherwise.
  298. */
  299. public function isJste () {}
  300. /**
  301. * Checks if this node is ASP
  302. * @link http://www.php.net/manual/en/tidynode.isasp.php
  303. * @return bool true if the node is ASP, false otherwise.
  304. */
  305. public function isAsp () {}
  306. /**
  307. * Checks if a node is PHP
  308. * @link http://www.php.net/manual/en/tidynode.isphp.php
  309. * @return bool true if the current node is PHP code, false otherwise.
  310. */
  311. public function isPhp () {}
  312. /**
  313. * Returns the parent node of the current node
  314. * @link http://www.php.net/manual/en/tidynode.getparent.php
  315. * @return tidyNode a tidyNode if the node has a parent, or &null;
  316. * otherwise.
  317. */
  318. public function getParent () {}
  319. private function __construct () {}
  320. }
  321. function tidy_getopt () {}
  322. function tidy_parse_string () {}
  323. function tidy_parse_file () {}
  324. /**
  325. * Return a string representing the parsed tidy markup
  326. * @link http://www.php.net/manual/en/function.tidy-get-output.php
  327. * @param object tidy <p>
  328. * &tidy.object;
  329. * </p>
  330. * @return string the parsed tidy markup.
  331. */
  332. function tidy_get_output (tidy $object) {}
  333. /**
  334. * Return warnings and errors which occurred parsing the specified document
  335. * @link http://www.php.net/manual/en/function.tidy-get-error-buffer.php
  336. * @param object tidy <p>
  337. * &tidy.object;
  338. * </p>
  339. * @return string the error buffer as a string.
  340. */
  341. function tidy_get_error_buffer (tidy $object) {}
  342. function tidy_clean_repair () {}
  343. function tidy_repair_string () {}
  344. function tidy_repair_file () {}
  345. function tidy_diagnose () {}
  346. function tidy_get_release () {}
  347. function tidy_get_config () {}
  348. function tidy_get_status () {}
  349. function tidy_get_html_ver () {}
  350. function tidy_is_xhtml () {}
  351. function tidy_is_xml () {}
  352. /**
  353. * Returns the Number of Tidy errors encountered for specified document
  354. * @link http://www.php.net/manual/en/function.tidy-error-count.php
  355. * @param object tidy <p>
  356. * &tidy.object;
  357. * </p>
  358. * @return int the number of errors.
  359. */
  360. function tidy_error_count (tidy $object) {}
  361. /**
  362. * Returns the Number of Tidy warnings encountered for specified document
  363. * @link http://www.php.net/manual/en/function.tidy-warning-count.php
  364. * @param object tidy <p>
  365. * &tidy.object;
  366. * </p>
  367. * @return int the number of warnings.
  368. */
  369. function tidy_warning_count (tidy $object) {}
  370. /**
  371. * Returns the Number of Tidy accessibility warnings encountered for specified document
  372. * @link http://www.php.net/manual/en/function.tidy-access-count.php
  373. * @param object tidy <p>
  374. * &tidy.object;
  375. * </p>
  376. * @return int the number of warnings.
  377. */
  378. function tidy_access_count (tidy $object) {}
  379. /**
  380. * Returns the Number of Tidy configuration errors encountered for specified document
  381. * @link http://www.php.net/manual/en/function.tidy-config-count.php
  382. * @param object tidy <p>
  383. * &tidy.object;
  384. * </p>
  385. * @return int the number of errors.
  386. */
  387. function tidy_config_count (tidy $object) {}
  388. function tidy_get_opt_doc () {}
  389. function tidy_get_root () {}
  390. function tidy_get_head () {}
  391. function tidy_get_html () {}
  392. function tidy_get_body () {}
  393. /**
  394. * ob_start callback function to repair the buffer
  395. * @link http://www.php.net/manual/en/function.ob-tidyhandler.php
  396. * @param input string <p>
  397. * The buffer.
  398. * </p>
  399. * @param mode int[optional] <p>
  400. * The buffer mode.
  401. * </p>
  402. * @return string the modified buffer.
  403. */
  404. function ob_tidyhandler ($input, $mode = null) {}
  405. /**
  406. * description
  407. * @link http://www.php.net/manual/en/tidy.constants.php
  408. */
  409. define ('TIDY_TAG_UNKNOWN', 0);
  410. define ('TIDY_TAG_A', 1);
  411. define ('TIDY_TAG_ABBR', 2);
  412. define ('TIDY_TAG_ACRONYM', 3);
  413. define ('TIDY_TAG_ADDRESS', 4);
  414. define ('TIDY_TAG_ALIGN', 5);
  415. define ('TIDY_TAG_APPLET', 6);
  416. define ('TIDY_TAG_AREA', 7);
  417. define ('TIDY_TAG_B', 8);
  418. define ('TIDY_TAG_BASE', 9);
  419. define ('TIDY_TAG_BASEFONT', 10);
  420. define ('TIDY_TAG_BDO', 11);
  421. define ('TIDY_TAG_BGSOUND', 12);
  422. define ('TIDY_TAG_BIG', 13);
  423. define ('TIDY_TAG_BLINK', 14);
  424. define ('TIDY_TAG_BLOCKQUOTE', 15);
  425. define ('TIDY_TAG_BODY', 16);
  426. define ('TIDY_TAG_BR', 17);
  427. define ('TIDY_TAG_BUTTON', 18);
  428. define ('TIDY_TAG_CAPTION', 19);
  429. define ('TIDY_TAG_CENTER', 20);
  430. define ('TIDY_TAG_CITE', 21);
  431. define ('TIDY_TAG_CODE', 22);
  432. define ('TIDY_TAG_COL', 23);
  433. define ('TIDY_TAG_COLGROUP', 24);
  434. define ('TIDY_TAG_COMMENT', 25);
  435. define ('TIDY_TAG_DD', 26);
  436. define ('TIDY_TAG_DEL', 27);
  437. define ('TIDY_TAG_DFN', 28);
  438. define ('TIDY_TAG_DIR', 29);
  439. define ('TIDY_TAG_DIV', 30);
  440. define ('TIDY_TAG_DL', 31);
  441. define ('TIDY_TAG_DT', 32);
  442. define ('TIDY_TAG_EM', 33);
  443. define ('TIDY_TAG_EMBED', 34);
  444. define ('TIDY_TAG_FIELDSET', 35);
  445. define ('TIDY_TAG_FONT', 36);
  446. define ('TIDY_TAG_FORM', 37);
  447. define ('TIDY_TAG_FRAME', 38);
  448. define ('TIDY_TAG_FRAMESET', 39);
  449. define ('TIDY_TAG_H1', 40);
  450. define ('TIDY_TAG_H2', 41);
  451. define ('TIDY_TAG_H3', 42);
  452. define ('TIDY_TAG_H4', 43);
  453. define ('TIDY_TAG_H5', 44);
  454. define ('TIDY_TAG_H6', 45);
  455. define ('TIDY_TAG_HEAD', 46);
  456. define ('TIDY_TAG_HR', 47);
  457. define ('TIDY_TAG_HTML', 48);
  458. define ('TIDY_TAG_I', 49);
  459. define ('TIDY_TAG_IFRAME', 50);
  460. define ('TIDY_TAG_ILAYER', 51);
  461. define ('TIDY_TAG_IMG', 52);
  462. define ('TIDY_TAG_INPUT', 53);
  463. define ('TIDY_TAG_INS', 54);
  464. define ('TIDY_TAG_ISINDEX', 55);
  465. define ('TIDY_TAG_KBD', 56);
  466. define ('TIDY_TAG_KEYGEN', 57);
  467. define ('TIDY_TAG_LABEL', 58);
  468. define ('TIDY_TAG_LAYER', 59);
  469. define ('TIDY_TAG_LEGEND', 60);
  470. define ('TIDY_TAG_LI', 61);
  471. define ('TIDY_TAG_LINK', 62);
  472. define ('TIDY_TAG_LISTING', 63);
  473. define ('TIDY_TAG_MAP', 64);
  474. define ('TIDY_TAG_MARQUEE', 65);
  475. define ('TIDY_TAG_MENU', 66);
  476. define ('TIDY_TAG_META', 67);
  477. define ('TIDY_TAG_MULTICOL', 68);
  478. define ('TIDY_TAG_NOBR', 69);
  479. define ('TIDY_TAG_NOEMBED', 70);
  480. define ('TIDY_TAG_NOFRAMES', 71);
  481. define ('TIDY_TAG_NOLAYER', 72);
  482. define ('TIDY_TAG_NOSAVE', 73);
  483. define ('TIDY_TAG_NOSCRIPT', 74);
  484. define ('TIDY_TAG_OBJECT', 75);
  485. define ('TIDY_TAG_OL', 76);
  486. define ('TIDY_TAG_OPTGROUP', 77);
  487. define ('TIDY_TAG_OPTION', 78);
  488. define ('TIDY_TAG_P', 79);
  489. define ('TIDY_TAG_PARAM', 80);
  490. define ('TIDY_TAG_PLAINTEXT', 81);
  491. define ('TIDY_TAG_PRE', 82);
  492. define ('TIDY_TAG_Q', 83);
  493. define ('TIDY_TAG_RB', 84);
  494. define ('TIDY_TAG_RBC', 85);
  495. define ('TIDY_TAG_RP', 86);
  496. define ('TIDY_TAG_RT', 87);
  497. define ('TIDY_TAG_RTC', 88);
  498. define ('TIDY_TAG_RUBY', 89);
  499. define ('TIDY_TAG_S', 90);
  500. define ('TIDY_TAG_SAMP', 91);
  501. define ('TIDY_TAG_SCRIPT', 92);
  502. define ('TIDY_TAG_SELECT', 93);
  503. define ('TIDY_TAG_SERVER', 94);
  504. define ('TIDY_TAG_SERVLET', 95);
  505. define ('TIDY_TAG_SMALL', 96);
  506. define ('TIDY_TAG_SPACER', 97);
  507. define ('TIDY_TAG_SPAN', 98);
  508. define ('TIDY_TAG_STRIKE', 99);
  509. define ('TIDY_TAG_STRONG', 100);
  510. define ('TIDY_TAG_STYLE', 101);
  511. define ('TIDY_TAG_SUB', 102);
  512. define ('TIDY_TAG_SUP', 103);
  513. define ('TIDY_TAG_TABLE', 104);
  514. define ('TIDY_TAG_TBODY', 105);
  515. define ('TIDY_TAG_TD', 106);
  516. define ('TIDY_TAG_TEXTAREA', 107);
  517. define ('TIDY_TAG_TFOOT', 108);
  518. define ('TIDY_TAG_TH', 109);
  519. define ('TIDY_TAG_THEAD', 110);
  520. define ('TIDY_TAG_TITLE', 111);
  521. define ('TIDY_TAG_TR', 112);
  522. define ('TIDY_TAG_TT', 113);
  523. define ('TIDY_TAG_U', 114);
  524. define ('TIDY_TAG_UL', 115);
  525. define ('TIDY_TAG_VAR', 116);
  526. define ('TIDY_TAG_WBR', 117);
  527. define ('TIDY_TAG_XMP', 118);
  528. /**
  529. * root node
  530. * @link http://www.php.net/manual/en/tidy.constants.php
  531. */
  532. define ('TIDY_NODETYPE_ROOT', 0);
  533. /**
  534. * doctype
  535. * @link http://www.php.net/manual/en/tidy.constants.php
  536. */
  537. define ('TIDY_NODETYPE_DOCTYPE', 1);
  538. /**
  539. * HTML comment
  540. * @link http://www.php.net/manual/en/tidy.constants.php
  541. */
  542. define ('TIDY_NODETYPE_COMMENT', 2);
  543. /**
  544. * Processing Instruction
  545. * @link http://www.php.net/manual/en/tidy.constants.php
  546. */
  547. define ('TIDY_NODETYPE_PROCINS', 3);
  548. /**
  549. * Text
  550. * @link http://www.php.net/manual/en/tidy.constants.php
  551. */
  552. define ('TIDY_NODETYPE_TEXT', 4);
  553. /**
  554. * start tag
  555. * @link http://www.php.net/manual/en/tidy.constants.php
  556. */
  557. define ('TIDY_NODETYPE_START', 5);
  558. /**
  559. * end tag
  560. * @link http://www.php.net/manual/en/tidy.constants.php
  561. */
  562. define ('TIDY_NODETYPE_END', 6);
  563. /**
  564. * empty tag
  565. * @link http://www.php.net/manual/en/tidy.constants.php
  566. */
  567. define ('TIDY_NODETYPE_STARTEND', 7);
  568. /**
  569. * CDATA
  570. * @link http://www.php.net/manual/en/tidy.constants.php
  571. */
  572. define ('TIDY_NODETYPE_CDATA', 8);
  573. /**
  574. * XML section
  575. * @link http://www.php.net/manual/en/tidy.constants.php
  576. */
  577. define ('TIDY_NODETYPE_SECTION', 9);
  578. /**
  579. * ASP code
  580. * @link http://www.php.net/manual/en/tidy.constants.php
  581. */
  582. define ('TIDY_NODETYPE_ASP', 10);
  583. /**
  584. * JSTE code
  585. * @link http://www.php.net/manual/en/tidy.constants.php
  586. */
  587. define ('TIDY_NODETYPE_JSTE', 11);
  588. /**
  589. * PHP code
  590. * @link http://www.php.net/manual/en/tidy.constants.php
  591. */
  592. define ('TIDY_NODETYPE_PHP', 12);
  593. /**
  594. * XML declaration
  595. * @link http://www.php.net/manual/en/tidy.constants.php
  596. */
  597. define ('TIDY_NODETYPE_XMLDECL', 13);
  598. // End of tidy v.2.0
  599. ?>