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

@@ 679-681 (lines=3) @@
676
 * @return mixed|string
677
 */
678
function entites_html($texte, $tout = false, $quote = true) {
679
	if (!is_string($texte) or !$texte
680
		or strpbrk($texte, "&\"'<>") == false
681
	) {
682
		return $texte;
683
	}
684
	include_spip('inc/texte');