Java tutorial
//package com.java2s; /** * FemtoUtil<br> * * @author Takahiro Iwase * @license Apache License 2.0 */ public class Main { public static final String replaceValueString(String value) { if (value == null) return "null"; value = value.replaceAll("\r\n", "<femtobr>"); value = value.replaceAll("\r", "<femtobr>"); value = value.replaceAll("\n", "<femtobr>"); value = value.replaceAll("\t", "<femtotab>"); return value; } }