xref: /php-src/ext/tidy/tests/024.phpt (revision 7f2f0c00)
1--TEST--
2libtidy handling of 'new-blocklevel-tags'
3--EXTENSIONS--
4tidy
5--FILE--
6<?php
7
8// more info at http://sf.net/tracker/?func=detail&atid=390963&aid=1598422&group_id=27659
9
10$contents = '
11<wps:block>
12<wps:var>
13<wps:value></wps:value>
14</wps:var>
15</wps:block>';
16
17$config = array(
18'doctype' => 'omit',
19'new-blocklevel-tags' => 'wps:block,wps:var,wps:value',
20'newline' => 'LF'
21);
22
23$tidy = tidy_parse_string($contents, $config, 'utf8');
24$tidy->cleanRepair();
25echo $tidy;
26
27?>
28--EXPECTF--
29<html>
30<head>
31<title></title>
32</head>
33<body>
34<wps:block>%w<wps:var>%w<wps:value></wps:value>%w</wps:var>%w</wps:block>
35</body>
36</html>
37