1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
<use-module>html_wash</use-module> 
 
<test no-strip-ws="" no-canon="t"> 
  <rxml><wash-html><b>text</b><br />[&]</wash-html></rxml> 
  <result>&lt;b&gt;text&lt;/b&gt;&lt;br /&gt;[&amp;]</result> 
</test> 
 
<test no-strip-ws="" no-canon="t"> 
  <rxml><wash-html keep-all="t"><b>text</b><br />[&]</wash-html></rxml> 
  <result><b>text</b><br />[&]</result> 
</test> 
 
<test no-strip-ws="" no-canon="t"> 
  <rxml><wash-html keep-containers="b" 
    ><B>BOLD</B><b>bold</b><i>italic</i><br /></wash-html></rxml> 
  <result><b>BOLD</b><b>bold</b>&lt;i&gt;italic&lt;/i&gt;&lt;br /&gt;</result> 
</test> 
 
<test no-strip-ws="" no-canon="t"> 
  <rxml><wash-html keep-containers="b,i" 
    ><B>BOLD</B><b>bold</b><i>italic</i><br /></wash-html></rxml> 
  <result><b>BOLD</b><b>bold</b><i>italic</i>&lt;br /&gt;</result> 
</test> 
 
<test no-strip-ws="" no-canon="t"> 
  <rxml><wash-html keep-containers="b,i" keep-tags="br" 
    ><B>BOLD</B><b>bold</b><i>italic</i><br /><br></wash-html></rxml> 
  <result><b>BOLD</b><b>bold</b><i>italic</i><br><br></result> 
</test> 
 
<test no-strip-ws="" no-canon="t"> 
  <rxml no-canon=""><wash-html keep-containers="b,i" keep-tags="br" close-tags="t" 
    ><B>BOLD</B><b>bold</b><i>italic</i><br /><br></wash-html></rxml> 
  <result><b>BOLD</b><b>bold</b><i>italic</i><br /><br /></result> 
</test> 
 
 
<test no-strip-ws="" no-canon="t"> 
  <rxml no-canon=""><wash-html linkify="t"> 
    www.roxen.com 
    www.roxen.com/projects 
    http://www.roxen.com 
    https://www.roxen.com 
    ftp.roxen.com 
    ftp://ftp.roxen.com</wash-html></rxml> 
  <result> 
    <a href="http://www.roxen.com">http://www.roxen.com</a> 
    <a href="http://www.roxen.com/projects">http://www.roxen.com/projects</a> 
    <a href="http://www.roxen.com">http://www.roxen.com</a> 
    <a href="https://www.roxen.com">https://www.roxen.com</a> 
    <a href="ftp://ftp.roxen.com">ftp://ftp.roxen.com</a> 
    <a href="ftp://ftp.roxen.com">ftp://ftp.roxen.com</a></result> 
</test> 
 
<test no-strip-ws="" no-canon="t"> 
  <rxml no-canon=""><wash-html linkify="t" keep-containers="a"> 
    www.roxen.com 
    cvs.roxen.com 
    The new server for www. It is fast. 
    <a href="http://www.roxen.com">Roxen</a></wash-html></rxml> 
  <result> 
    <a href="http://www.roxen.com">http://www.roxen.com</a> 
    cvs.roxen.com 
    The new server for www. It is fast. 
    <a href="http://www.roxen.com">Roxen</a></result> 
</test> 
 
<test no-strip-ws="" no-canon="t"> 
  <rxml no-canon=""><wash-html unlinkify="t"> 
    <a href='http://www.roxen.com'>http://www.roxen.com</a> 
    <a href='http://www.roxen.com/projects'>http://www.roxen.com/projects</a> 
    <a href='http://www.roxen.com'>http://www.roxen.com</a> 
    <a href='https://www.roxen.com'>https://www.roxen.com</a> 
    <a href='ftp://ftp.roxen.com'>ftp://ftp.roxen.com</a> 
    <a href='ftp://ftp.roxen.com'>ftp://ftp.roxen.com</a></wash-html></rxml> 
  <result> 
    http://www.roxen.com 
    http://www.roxen.com/projects 
    http://www.roxen.com 
    https://www.roxen.com 
    ftp://ftp.roxen.com 
    ftp://ftp.roxen.com</result> 
</test> 
 
 
<test no-strip-ws="" no-canon="t"> 
<rxml><wash-html paragraphify="t">Paragraph 1 
 
Paragraph 2</wash-html></rxml> 
<result><p>Paragraph 1</p> 
<p>Paragraph 2</p></result> 
</test> 
 
 
<test no-strip-ws="" no-canon="t"> 
<rxml><wash-html unparagraphify="t"><p>Paragraph 1</p> 
<p>Paragraph 2</p></wash-html></rxml> 
<result>Paragraph 1 
 
Paragraph 2</result> 
</test> 
 
 
<test no-strip-ws="" no-canon="t"> 
<rxml><wash-html unparagraphify="t"><p>Paragraph 1</p>
 
<p>Paragraph 2</p></wash-html></rxml> 
<result>Paragraph 1 
 
Paragraph 2</result> 
</test> 
 
 
<test no-strip-ws="" no-canon="t"> 
<rxml><wash-html unparagraphify="t"><P>Paragraph 1</P> 
<p>Paragraph 2</p></wash-html></rxml> 
<result>Paragraph 1 
 
Paragraph 2</result> 
</test> 
 
 
<test no-strip-ws="" no-canon="t"> 
<rxml><wash-html paragraphify="t" keep-containers="b"><b>Paragraph 1</b> 
 
<i>Paragraph 2</i></wash-html></rxml> 
<result><p><b>Paragraph 1</b></p> 
<p>&lt;i&gt;Paragraph 2&lt;/i&gt;</p></result> 
</test>