Code Duplication    Length = 3-3 lines in 2 locations

ecrire/xml/sax.php 1 location

@@ 27-29 (lines=3) @@
24
 * @return string
25
 */
26
function xml_entites_html($texte) {
27
	if (!is_string($texte) or !$texte
28
		or strpbrk($texte, "&\"'<>") == false
29
	) {
30
		return $texte;
31
	}
32

ecrire/inc/filtres.php 1 location

@@ 741-743 (lines=3) @@
738
 * @return mixed|string
739
 */
740
function entites_html($texte, $tout = false, $quote = true) {
741
	if (!is_string($texte) or !$texte
742
		or strpbrk($texte, "&\"'<>") == false
743
	) {
744
		return $texte;
745
	}
746
	include_spip('inc/texte');