package com.cosy.utils;
/**
* @author: why
* @Date: 2020/4/11 10:24
* @Description: 解决word成文格式显示问题
*/
public class FreemarkerWordFormatUtil {
/**
* @Description 格式化文本内容,使其freemarker解析的word文本内容成文格式与用户页面文本格式相同
* @Author why
* @Date 2020/4/11 10:12
* @Param text 带有格式的文本内容
*/
public static String getFormatText(String text){
//处理转义字符
text = transform(text);
freemarker在word成文时换行、空格、字符转义处理
最新推荐文章于 2023-06-27 17:25:36 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)