-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathRegExLibrary.xml
170 lines (170 loc) · 6.42 KB
/
RegExLibrary.xml
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<RegularExpressionLibrary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Library libraryname="CleanHTML">
<task name="Remove Fonts" description="">
<action name="font" description="" supportsRecursion="false">
<pattern><![CDATA[<font[/="#\w\s]*>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
<action name="/font" description="" supportsRecursion="false">
<pattern><![CDATA[</font>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Clean TD" description="">
<action name="font" description="" supportsRecursion="false">
<pattern><![CDATA[<td[/="%#\w\s]*>]]></pattern>
<replacement><![CDATA[<td>]]></replacement>
</action>
</task>
<task name="Clean Body" description="">
<action name="body" description="" supportsRecursion="false">
<pattern><![CDATA[<body[/="%#\w\s]*>]]></pattern>
<replacement><![CDATA[<body>]]></replacement>
</action>
</task>
<task name="Clean Table" description="">
<action name="font" description="" supportsRecursion="false">
<pattern><![CDATA[<table[/="%#\w\s]*>]]></pattern>
<replacement><![CDATA[<table>]]></replacement>
</action>
</task>
<task name="Clean nb space" description="">
<action name="nb space" description="" supportsRecursion="false">
<pattern><![CDATA[ ]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Clean ' <'" description="">
<action name="less than" description="" supportsRecursion="true">
<pattern><![CDATA[ <]]></pattern>
<replacement><![CDATA[<]]></replacement>
</action>
<action name="greater than" description="" supportsRecursion="true">
<pattern><![CDATA[> ]]></pattern>
<replacement><![CDATA[>]]></replacement>
</action>
<action name="greater than" description="" supportsRecursion="true">
<pattern><![CDATA[ >]]></pattern>
<replacement><![CDATA[>]]></replacement>
</action>
</task>
<task name="Remove Div" description="">
<action name="div" description="" supportsRecursion="false">
<pattern><![CDATA[<div[/="%#\w\s]*>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
<action name="/div" description="" supportsRecursion="false">
<pattern><![CDATA[</div>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove P" description="">
<action name="p" description="" supportsRecursion="false">
<pattern><![CDATA[<p[/=:;"%#\w\s]*>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
<action name="/p" description="" supportsRecursion="false">
<pattern><![CDATA[</p>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove B" description="">
<action name="b" description="" supportsRecursion="false">
<pattern><![CDATA[<b>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
<action name="/b" description="" supportsRecursion="false">
<pattern><![CDATA[</b>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove Strong" description="">
<action name="strong" description="" supportsRecursion="false">
<pattern><![CDATA[<strong>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
<action name="/strong" description="" supportsRecursion="false">
<pattern><![CDATA[</strong>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove Small" description="">
<action name="small" description="" supportsRecursion="false">
<pattern><![CDATA[<small>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
<action name="/small" description="" supportsRecursion="false">
<pattern><![CDATA[</small>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove BR" description="">
<action name="br" description="" supportsRecursion="false">
<pattern><![CDATA[<br>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove HR" description="">
<action name="hr" description="" supportsRecursion="false">
<pattern><![CDATA[<hr>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove Webbot" description="">
<action name="webbot" description="" supportsRecursion="false">
<pattern><![CDATA[<!--webbot[/./="%#\w\s/-]*>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove Meta" description="">
<action name="meta" description="" supportsRecursion="false">
<pattern><![CDATA[<meta[/./=;:",%#\w\s/-]*>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove Center" description="">
<action name="center" description="" supportsRecursion="false">
<pattern><![CDATA[<center>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
<action name="/center" description="" supportsRecursion="false">
<pattern><![CDATA[</center>]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove Double Spaces" description="">
<action name="double spaces" description="" supportsRecursion="true">
<pattern><![CDATA[ ]]></pattern>
<replacement><![CDATA[ ]]></replacement>
</action>
</task>
<task name="Remove Line Feeds" description="">
<action name="line feeds" description="" supportsRecursion="true">
<pattern><![CDATA[\n]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
<action name="line feeds" description="" supportsRecursion="true">
<pattern><![CDATA[\r]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove Height" description="">
<action name="remove height" description="" supportsRecursion="false">
<pattern><![CDATA[height[="%\d]*]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove Width" description="">
<action name="remove width" description="" supportsRecursion="false">
<pattern><![CDATA[width[="%\d]*]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
<task name="Remove Border" description="">
<action name="remove border" description="" supportsRecursion="false">
<pattern><![CDATA[border[="%\d]*]]></pattern>
<replacement><![CDATA[]]></replacement>
</action>
</task>
</Library>
</RegularExpressionLibrary>