Even kill off s too.
This commit is contained in:
parent
e47d3abfac
commit
8347fe5e48
2
Block.pm
2
Block.pm
@ -291,7 +291,7 @@ sub validate_htmlarea {
|
||||
my $scrubber = HTML::Scrubber -> new();
|
||||
my $nohtml = $scrubber -> scrub($text);
|
||||
|
||||
$nohtml =~ s/\s//g; # Kill some kinds of whitespace that may be left by scrubber that will confuse length checks.
|
||||
$nohtml =~ s/(\s| )//g; # Kill some kinds of whitespace that may be left by scrubber that will confuse length checks.
|
||||
|
||||
# If the text area is empty, deal with the whole default/required malarky
|
||||
if(!defined($nohtml) || !$nohtml) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user