You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`inline`| HTML elements that are considered inline |`Array('b', 'u', 'big', 'i', 'small', 'ttspan', 'em', 'a', 'strong', 'sub', 'sup', 'abbr', 'acronym', 'cite', 'code', 'dfn', 'em', 'kbd', 'strong', 'samp', 'var', 'span')`|
19
-
|`singleton`| HTML elements that are singletons |`Array('area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr')`|
20
-
|`closeoptional`| HTML elements that don't have to be closed |`Array('head', 'body', 'p', 'dt', 'dd', 'li', 'option', 'thead', 'th', 'tbody', 'tr', 'td', 'tfoot', 'colgroup')`|
21
-
|`pre`| HTML elements that contain pre-formatted content |`Array('textarea', 'pre', 'code')`|
22
-
|`plugins`| HTML elements that have a custom handler class |`Array('script', 'style')`|
18
+
|`inline`| HTML elements that are considered inline |`['b', 'u', 'big', 'i', 'small', 'ttspan', 'em', 'a', 'strong', 'sub', 'sup', 'abbr', 'acronym', 'cite', 'code', 'dfn', 'em', 'kbd', 'strong', 'samp', 'var', 'span']`|
19
+
|`singleton`| HTML elements that are singletons |`['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']`|
20
+
|`closeoptional`| HTML elements that don't have to be closed |`['head', 'body', 'p', 'dt', 'dd', 'li', 'option', 'thead', 'th', 'tbody', 'tr', 'td', 'tfoot', 'colgroup']`|
21
+
|`pre`| HTML elements that contain pre-formatted content |`['textarea', 'pre', 'code']`|
22
+
|`plugins`| HTML elements that have a custom handler class |`['script', 'style']`|
Copy file name to clipboardExpand all lines: docs/api/minify.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,14 @@ An optional array contains a list of configuration parameters to configure the m
29
29
<td>Boolean</td>
30
30
<td></td>
31
31
<td>Lowercase tag and attribute names</td>
32
-
<td>true</td>
32
+
<td><code>true</code></td>
33
33
</tr>
34
34
<tr>
35
35
<td><code>whitespace</code></td>
36
36
<td>Boolean</td>
37
37
<td></td>
38
38
<td>Strip whitespace from text nodes (Preserves whitespace between inline items defined in <code>htmldoc::$config['elements']['inline']</code>)</td>
39
-
<td>true</td>
39
+
<td><code>true</code></td>
40
40
</tr>
41
41
<tr>
42
42
<td rowspan="2"><code>comments</code></td>
@@ -47,7 +47,7 @@ An optional array contains a list of configuration parameters to configure the m
47
47
<tr>
48
48
<td><code>ie</code></td>
49
49
<td>Whether to preserve Internet Explorer specific comments</td>
50
-
<td>true</td>
50
+
<td><code>true</code></td>
51
51
</tr>
52
52
<tr>
53
53
<td rowspan="5"><code>urls</code></td>
@@ -58,22 +58,22 @@ An optional array contains a list of configuration parameters to configure the m
58
58
<tr>
59
59
<td><code>scheme</code></td>
60
60
<td>Remove the scheme from URLs that have the same scheme as the current document</td>
61
-
<td>true</td>
61
+
<td><code>true</code></td>
62
62
</tr>
63
63
<tr>
64
64
<td><code>host</code></td>
65
65
<td>Remove the host for own domain</td>
66
-
<td>true</td>
66
+
<td><code>true</code></td>
67
67
</tr>
68
68
<tr>
69
69
<td><code>relative</code></td>
70
70
<td>Process absolute URLs to make them relative to the current document</td>
71
-
<td>true</td>
71
+
<td><code>true</code></td>
72
72
</tr>
73
73
<tr>
74
74
<td><code>parent</code></td>
75
75
<td>Process relative URLs to use parent folders (<code>../</code>) where it is shorter</td>
76
-
<td>true</td>
76
+
<td><code>true</code></td>
77
77
</tr>
78
78
<tr>
79
79
<td rowspan="8"><code>attributes</code></td>
@@ -84,65 +84,65 @@ An optional array contains a list of configuration parameters to configure the m
84
84
<tr>
85
85
<td><code>default</code></td>
86
86
<td>Remove default attributes as defined in <code>htmldoc::$config['attributes']['default']</code></td>
87
-
<td>true</td>
87
+
<td><code>true</code></td>
88
88
</tr>
89
89
<tr>
90
90
<td><code>empty</code></td>
91
91
<td>Remove attributes with empty values, the attributes processed are defined in <code>htmldoc::$config['attributes']['empty']</code></td>
92
-
<td>true</td>
92
+
<td><code>true</code></td>
93
93
</tr>
94
94
<tr>
95
95
<td><code>option</code></td>
96
96
<td>Remove the <code>value</code> attribute from <code>option</code> tags where the text node has the same value</td>
97
-
<td>true</td>
97
+
<td><code>true</code></td>
98
98
</tr>
99
99
<tr>
100
100
<td><code>style</code></td>
101
101
<td>Remove whitespace and last semi-colon from the <code>style</code> attribute</td>
102
-
<td>true</td>
102
+
<td><code>true</code></td>
103
103
</tr>
104
104
<tr>
105
105
<td><code>class</code></td>
106
-
<td>Sort class names</td>
107
-
<td>true</td>
106
+
<td>Sort class names for better gzip compression</td>
107
+
<td><code>true</code></td>
108
108
</tr>
109
109
<tr>
110
110
<td><code>sort</code></td>
111
-
<td>Sort attributes</td>
112
-
<td>true</td>
111
+
<td>Sort attributes for better gzip compression</td>
112
+
<td><code>true</code></td>
113
113
</tr>
114
114
<tr>
115
115
<td><code>boolean</code></td>
116
116
<td>Minify boolean attributes to render only the attribute name and not the value. Boolean attributes are defined in <code>htmldoc::$config['attributes']['boolean']</code></td>
117
-
<td>true</td>
117
+
<td><code>true</code></td>
118
118
</tr>
119
119
<tr>
120
120
<td><code>singleton</code></td>
121
121
<td>Boolean</td>
122
122
<td></td>
123
123
<td>Removes spaces and slash in singleton attributes, e.g. <code><br /></code> becomes <code><br></code></td>
124
-
<td>true</td>
124
+
<td><code>true</code></td>
125
125
</tr>
126
126
<tr>
127
127
<td><code>quotes</code></td>
128
128
<td>Boolean</td>
129
129
<td></td>
130
130
<td>Removes quotes from attribute values where possible</td>
131
-
<td>true</td>
131
+
<td><code>true</code></td>
132
132
</tr>
133
133
<tr>
134
134
<td><code>close</code></td>
135
135
<td>Boolean</td>
136
136
<td></td>
137
-
<td>Removes closing tags for elements defined in `htmldoc::$config['elements']['closeoptional']` where possible</td>
138
-
<td>true</td>
137
+
<td>Removes closing tags for elements defined in <code>htmldoc::$config['elements']['closeoptional']</code> where possible</td>
138
+
<td><code>true</code></td>
139
139
</tr>
140
140
<tr>
141
141
<td><code>email</code></td>
142
142
<td>Boolean</td>
143
143
<td></td>
144
144
<td>Sets the minification presets to email safe options</td>
0 commit comments