Code Duplication    Length = 14-14 lines in 2 locations

lib/ar/content/html.php 1 location

@@ 259-272 (lines=14) @@
256
				$html 	= htmlcleaner::cleanup($html, $config);
257
			}
258
259
			if ($settings["htmltidy"]["enabled"] || $settings["htmltidy"]===true) {
260
				include_once($me->store->get_config("code")."modules/mod_tidy.php");
261
				if ($settings["htmltidy"]===true) {
262
					$config	= array();
263
					$config["options"] = $AR->Tidy->options;
264
				} else {
265
					$config = $settings["htmltidy"];
266
				}
267
				$config["temp"]	= $me->store->get_config("files")."temp/";
268
				$config["path"]	= $AR->Tidy->path;
269
				$tidy			= new ARtidy($config);
270
				$result			= $tidy->clean($html);
271
				$html			= $result["html"];
272
			}
273
274
			if ($settings["allow_tags"]) {
275
				$html			= strip_tags($html, $settings["allow_tags"]);

lib/modules/mod_page.php 1 location

@@ 125-138 (lines=14) @@
122
			$page   = htmlcleaner::cleanup($page, $config);
123
		}
124
125
		if ($settings["htmltidy"]["enabled"] || $settings["htmltidy"]===true) {
126
			require_once($me->store->get_config("code")."modules/mod_tidy.php");
127
			if ($settings["htmltidy"]===true) {
128
				$config = array();
129
				$config["options"] = $AR->Tidy->options;
130
			} else {
131
				$config = $settings["htmltidy"];
132
			}
133
			$config["temp"] = $me->store->get_config("files")."temp/";
134
			$config["path"] = $AR->Tidy->path;
135
			$tidy    = new ARtidy($config);
136
			$result  = $tidy->clean($page);
137
			$page    = $result["html"];
138
		}
139
140
		if ($settings["allow_tags"]) {
141
			$page    = strip_tags($page, $settings["allow_tags"]);