All Downloads are FREE. Search and download functionalities are using the official Maven repository.

matrix.business.pay.converter.HtmlConvert Maven / Gradle / Ivy

There is a newer version: 2.1.11
Show newest version
package matrix.business.pay.converter;

/**
 * html信息转换器
 * @author wangcheng
 */
public class HtmlConvert {

    public static final StringBuilder HTML = new StringBuilder();

    static {
        HTML.append("");
        HTML.append("");
        HTML.append("");
        HTML.append("");
        HTML.append("%s");
        HTML.append("");
    }

    /**
     * body转换
     * @param body body体
     * @return html
     */
    public static String bodyConvert(String body) {
        return String.format(HTML.toString(), body);
    }

    /**
     * 图片转换
     * @param image 图片地址
     * @return 带图片的html
     */
    public static String imageConvert(String image) {
        return String.format(HTML.toString(), "");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy