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

@@ 782-784 (lines=3) @@
779
 * @return mixed|string
780
 */
781
function entites_html($texte, $tout = false, $quote = true) {
782
	if (!is_string($texte) or !$texte
783
		or strpbrk($texte, "&\"'<>") == false
784
	) {
785
		return $texte;
786
	}
787
	include_spip('inc/texte');