X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;ds=sidebyside;f=ND%2FWeb%2FInclude.pm;h=6916392aac0d37a8255574bc8455a9c3b2b24f24;hb=617e6b318a1d053a19255bd3eabc1dbe7fe4e43b;hp=367dddb54c7b9d6993b277f048135d5ba3586391;hpb=30a9e2ee27cba724cc74ef77387a58b6c5fbdc1f;p=ndwebbie.git diff --git a/ND/Web/Include.pm b/ND/Web/Include.pm index 367dddb..6916392 100644 --- a/ND/Web/Include.pm +++ b/ND/Web/Include.pm @@ -44,6 +44,8 @@ sub parseMarkup ($) { my $tree = BBCode::Parser->DEFAULT->parse($text); $text = $tree->toHTML; }; + $text =~ s/\x{3}\d\d?//g; #mirc color TODO: possibly match until \x{0F} and change to [color] block + $text =~ s/[^\x{9}\x{A}\x{D}\x{20}-\x{D7FF}\x{E000}-\x{FFFD}\x{10000}-\x{10FFFF}]//g; return $text; }