( \\n )
,\n,gix;
- # Text tags
- # NB 02.12.23 for my $tag (qw(
- # NB 02.12.23 div
- # NB 02.12.23 p
- # NB 02.12.23 span
- # NB 02.12.23 pre
- # NB 02.12.23 code
- # NB 02.12.23 ))
- # NB 02.12.23 {
- # NB 02.12.23 my $exp = "<".$tag."[^>]*>(.*?)</$tag>";
- # NB 02.12.23 $v =~ s,$exp,$1\n,sgi;
- # NB 02.12.23 }
-
# Links
$v =~ s,
<a[^>]+href="([^"]+)"[^>]*>\g1</a>
$v =~ s/[\f ]+/ /g;
&str_trim($v);
$v = &NB::Functions::html_unescape($v);
+ $v =~ s/\x{FEFF}/ /g; # <feff>
return $v;
return $str;
}
-#die &html_unescape_fix_err("Karcher &ndash Balayeuse é");
-#die &html_unescape_fix_err("Pull 4 capuche Juventus FC Core pour Garçon (8-15 ans)");
sub html_unescape_fix_err {
#------------------------------------------------------------------------------
# NB 09.03.10