summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-11 10:23:33 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-11 10:23:33 +0800
commit95f6b3c78f07da448bf74b0e7f4286047bb9a5ad (patch)
tree5d7159543a7cd70511a1b918120fe35eb3fc39a1
parent709f973a7fb0b23121b6b55257b0631df5a08784 (diff)
downloadpttbbs-95f6b3c78f07da448bf74b0e7f4286047bb9a5ad.tar
pttbbs-95f6b3c78f07da448bf74b0e7f4286047bb9a5ad.tar.gz
pttbbs-95f6b3c78f07da448bf74b0e7f4286047bb9a5ad.tar.bz2
pttbbs-95f6b3c78f07da448bf74b0e7f4286047bb9a5ad.tar.lz
pttbbs-95f6b3c78f07da448bf74b0e7f4286047bb9a5ad.tar.xz
pttbbs-95f6b3c78f07da448bf74b0e7f4286047bb9a5ad.tar.zst
pttbbs-95f6b3c78f07da448bf74b0e7f4286047bb9a5ad.zip
ignore &nbsp;
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1044 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/udnnews.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/pttbbs/util/udnnews.pl b/pttbbs/util/udnnews.pl
index 21e3262c..fd02efc3 100644
--- a/pttbbs/util/udnnews.pl
+++ b/pttbbs/util/udnnews.pl
@@ -43,6 +43,7 @@ sub getudnnewscontent($$)
# ($content) = $buf =~ m|<p><font color="#CC0033" class="text12">(.*?)<tr valign="top">|s if( !$content );
$content =~ s/<p>/\n/gi;
$content =~ s/<.*?>//g;
+ $content =~ s/&nbsp;//g;
$content =~ s/\r//g;
$content =~ s/\n+/\n/gs;
$content = strreplace($content);