Changeset 1172 for FCKeditor.Net/trunk/FCKeditor.cs
- Timestamp:
- 2007-12-04 13:26:38 (10 months ago)
- Files:
-
- 1 modified
-
FCKeditor.Net/trunk/FCKeditor.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Net/trunk/FCKeditor.cs
r1167 r1172 321 321 } 322 322 323 [Category( "Configurations" )] 324 public bool HtmlEncodeOutput 325 { 326 set { this.Config[ "HtmlEncodeOutput" ] = ( value ? "true" : "false" ); } 327 } 328 323 329 #endregion 324 330 … … 446 452 public bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection) 447 453 { 448 if ( postCollection[postDataKey] != this.Value ) 449 { 450 this.Value = postCollection[postDataKey] ; 454 string postedValue = postCollection[postDataKey] ; 455 456 // Revert the HtmlEncodeOutput changes. 457 if ( this.Config["HtmlEncodeOutput"] != "false" ) 458 { 459 postedValue = postedValue.Replace( "&", "&" ) ; 460 postedValue = postedValue.Replace( "<", "<" ) ; 461 postedValue = postedValue.Replace( ">", ">" ) ; 462 } 463 464 if ( postedValue != this.Value ) 465 { 466 this.Value = postedValue ; 451 467 return true ; 452 468 }