X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FInclude.pm;h=4b9c6295408cff511ee93a215f61a57bae88bc92;hb=c53f6b0edb492227f9aa6959c4049f5c2e2b27b3;hp=367dddb54c7b9d6993b277f048135d5ba3586391;hpb=703fb07b575b355ab4e56379b1e99316a86b594d;p=ndwebbie.git diff --git a/ND/Web/Include.pm b/ND/Web/Include.pm index 367dddb..4b9c629 100644 --- a/ND/Web/Include.pm +++ b/ND/Web/Include.pm @@ -44,6 +44,7 @@ sub parseMarkup ($) { my $tree = BBCode::Parser->DEFAULT->parse($text); $text = $tree->toHTML; }; + $text =~ s/[^\x{9}\x{A}\x{D}\x{20}-\x{D7FF}\x{E000}-\x{FFFD}\x{10000}-\x{10FFFF}]//g; return $text; }