import java.lang.String;
import java.lang.StringBuffer;
public class InputEnc { protected String message=null;
public String TabEnc(String message){
this.message = message;
/**
* HTML 出力用に次の置換を行う
* & -> &
* < -> <
* > -> >
* " -> "
*
* @param input 置換対象の文字列
* @return 置換処理後の文字列
*/
this.message = substitute(this.message, "&", "&");
this.message = substitute(this.message, "<", "<");
this.message = substitute(this.message, ">", ">");
this.message = substitute(this.message, "\"", """);
this.message = substitute(this.message, "'", "''");
this.message = substitute(this.message, "\\", "\\\\");
this.message = substitute(this.message, "\r\n", "<br>");
this.message = substitute(this.message, "\n", "<br>");
this.message = substitute(this.message, "\r", "<br>");
return this.message;
}
}
|