FCKeditor 2.6.6
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_spellerpages / spellerpages / server-scripts / spellchecker.pl
index 8d3df65..fae010d 100644 (file)
@@ -58,6 +58,8 @@ sub printCheckerResults {
        # open temp file, add the submitted text.\r
        for( my $i = 0; $i <= $#textinputs; $i++ ) {\r
                $text = url_decode( $textinputs[$i] );\r
+               # Strip all tags for the text. (by FredCK - #339 / #681)\r
+               $text =~ s/<[^>]+>/ /g;\r
                @lines = split( /\n/, $text );\r
                print $fh "\%\n"; # exit terse mode\r
                print $fh "^$input_separator\n";\r
@@ -177,4 +179,3 @@ wordWindowObj.writeBody();
 </body>\r
 </html>\r
 EOF\r
-\r