Changeset 1189
- Timestamp:
- 2007-12-11 04:18:54 (2 years ago)
- Location:
- FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts
- Files:
-
- 3 modified
-
spellchecker.cfm (modified) (1 diff)
-
spellchecker.php (modified) (2 diffs)
-
spellchecker.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm
r662 r1189 38 38 & "^A" & CRLF 39 39 & "!" & CRLF> 40 <cfloop list="#URLDecode(field)#" index="line" delimiters="#CRLF#"> 40 <!--- Strip all tags for the text. (by FredCK - #339 / #681) ---> 41 <cfset field = REReplace(URLDecode(field), "<[^>]+>", " ", "all")> 42 <cfloop list="#field#" index="line" delimiters="#CRLF#"> 41 43 <cfset text = ListAppend(text, "^" & Trim(JSStringFormat(line)), CRLF)> 42 44 </cfloop> -
FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php
r1187 r1189 83 83 for( $i = 0; $i < count( $textinputs ); $i++ ) { 84 84 $text = urldecode( $textinputs[$i] ); 85 86 // Strip all tags for the text. (by FredCK - #339 / #681) 87 $text = preg_replace( "/<[^>]+>/", " ", $text ) ; 88 85 89 $lines = explode( "\n", $text ); 86 90 fwrite ( $fh, "%\n" ); # exit terse mode … … 195 199 </html> 196 200 201 -
FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl
r270 r1189 59 59 for( my $i = 0; $i <= $#textinputs; $i++ ) { 60 60 $text = url_decode( $textinputs[$i] ); 61 # Strip all tags for the text. (by FredCK - #339 / #681) 62 $text =~ s/<[^>]+>/ /g; 61 63 @lines = split( /\n/, $text ); 62 64 print $fh "\%\n"; # exit terse mode … … 179 181 EOF 180 182 183