html 里的回车换行,制表符 引号,\ 等符号的转化

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.test;

import com.edior.ecms.db.Execute;
import com.edior.ecms.publish.dao.PublishDao;
import com.google.gson.Gson;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.json.JSONObject;
import org.junit.Test;

/**

 @author Administrator
 */
public class TestDB {

    @Test
    public void testGet11() {

        System.out.println("test\r\nbbb");

    }

    @Test
    public void testGet() {

        List<Map<String, String>> list = PublishDao.getInstance().getBySql("1", "select * from ecms_content_1_wzb1 where nr is not null limit 0,1", new ArrayList<Object>());

        //数据库里查询出来直接打印如下:
//        <table style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;text-transform:none;background-color:white;text-indent:0px;margin:0px 0px 0px 3pt;padding-left:0px;width:626px;padding-right:0px;font:14px/25px 宋体;white-space:normal;letter-spacing:normal;height:194px;color:#333333;border-top:0px;border-right:0px;word-spacing:0px;padding-top:0px;-webkit-text-stroke-width:0px;" class="ke-zeroborder" border="0" cellspacing="0" cellpadding="0" width="626" bgcolor="#ffffff">
//	<tbody>
//		<tr>
//			<td style="border-bottom:0px;border-left:0px;padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;">
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;">
//					<span><span style="color:black;font-size:10.5pt;" lang="EN-US"><span style="font-family:宋体;">单位全称:浙江省体育局<br />
//</span><span style="font-family:宋体;">地址:杭州市体育场路</span><span lang="EN-US"><span style="font-family:'Times New Roman';">212</span></span><span style="font-family:宋体;">号</span><span lang="EN-US"><span style="font-family:'Times New Roman';"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;</span></span></span><span style="font-family:宋体;">网址:</span><span lang="EN-US"><span style="font-family:'Times New Roman';"><a style="color:#292929;text-decoration:none;" href="http://www.zjsports.gov.cn/"><span style="color:#0000ff;">http://www.zjsports.gov.cn</span></a><br />
//</span></span><span style="font-family:宋体;">传真:</span><span lang="EN-US"><span style="font-family:'Times New Roman';">0571-85153048<span>&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><span>&nbsp;</span>E-mail</span></span><span style="font-family:宋体;">:</span></span></span><span style="font-size:10.5pt;" lang="EN-US"><span lang="EN-US"><span style="font-family:'Times New Roman';"><a style="color:#292929;text-decoration:none;" href="mailto:[email protected]">[email protected]</a><br />
//</span></span></span><span><span style="color:black;font-size:10.5pt;" lang="EN-US"><span style="font-family:宋体;">电话:</span><span lang="EN-US"><span style="font-family:'Times New Roman';">0571-85153091(</span></span><span style="font-family:宋体;">总机</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)<span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span></span><span style="font-family:宋体;">监督电话:</span><span lang="EN-US"><span style="font-family:'Times New Roman';">0571-85<?xml:namespace prefix = st1 /><st1:rtx w:st="on">1026</st1:rtx>91<br />
//</span></span></span></span>
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					&nbsp;<br />
//<strong><span style="font-size:large;"><span style="font-family:宋体;">浙江省体育局主要职责:</span></span></strong><span style="font-family:宋体;"><br />
//</span><span style="color:black;font-size:10.5pt;" lang="EN-US">&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br />
//<span style="font-size:larger;"><img style="border-bottom:0px;border-left:0px;padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" alt="" align="left" src="http://www.zjsports.gov.cn/upload/article/2009/8/13/402881832302147b012312d398440197.jpg" />&nbsp;&nbsp;&nbsp; 一、贯彻执行国家有关体育工作的方针、政策;起草有关体育行政(行业)管理的地方性法规性、规章草案,经审议通过后组织实施。<br />
//&nbsp;&nbsp;&nbsp; 二、指导和推动体育体制改革,制定体育发展战略,编制体育事业的中长期发展规划,协调区域性体育发展。<br />
//&nbsp;&nbsp;&nbsp; 三、负责全省全民健身工作,指导并开展群众性体育活动,监督实施国家体育锻炼标准,组织开展国民体质监测。<br />
//&nbsp;&nbsp;&nbsp; 四、统筹规划竞技体育发展工作,研究和平衡全省体育竞赛、竞技运动项目设置与重点布局;组织开展反兴奋剂工作。<br />
//&nbsp;&nbsp;&nbsp; 五、统筹规划青少年体育发展,指导和推进青少年体育工作。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;六、培育、发展体育产业,研究拟定体育产业和经营活动的政策,归口管理体育市场;制定高危险性体育项目经营活动从业条件和审批程序;负责体育彩票管理工作。协同有关部门规划、协调体育设施建设布局;负责公共体育设施的监督检查。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;七、组织和指导体育宣传、科研教育工作;组织开展体育干部和体育专业人才的培训工作,加强体育队伍的思想政治工作。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;八、管理体育外事工作,开展国际间以及与港澳台的体育合作与交流。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;九、负责全省体育社团的资格审查;依法管理健身气功。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;十、承办省政府交办的其他事项。</span> 
//				</p>
//			</td>
//		</tr>
//	</tbody>
//</table>
        String get = list.get(0).get("nr");

        System.out.println(get);
        Gson gson = new Gson();
        System.out.println("###################################");
        String gstr = gson.toJson(get);
//         System.out.println(gstr);

        Map<String, String> map = new HashMap<String, String>();
        map.put("map", get);
        String instr = JSONObject.fromObject(map).toString();

        String substring = instr.substring(8, instr.length() - 2);

        //转换为json 吧换行符给转化了 打印如下
        //换行回车 都替换成了 \r\n 制表符 都替换成了\t  双引号都替换成了  \"    \替换成了\t 记住能打印出来的都是字符了,不是回车换行等看不到的符号了,看到的
        //都是字符
        //<table style=\"border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;text-transform:none;background-color:white;text-indent:0px;margin:0px 0px 0px 3pt;padding-left:0px;width:626px;padding-right:0px;font:14px/25px 宋体;white-space:normal;letter-spacing:normal;height:194px;color:#333333;border-top:0px;border-right:0px;word-spacing:0px;padding-top:0px;-webkit-text-stroke-width:0px;\" class=\"ke-zeroborder\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"626\" bgcolor=\"#ffffff\">\r\n\t<tbody>\r\n\t\t<tr>\r\n\t\t\t<td style=\"border-bottom:0px;border-left:0px;padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;\">\r\n\t\t\t\t<p style=\"border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;\">\r\n\t\t\t\t\t<span><span style=\"color:black;font-size:10.5pt;\" lang=\"EN-US\"><span style=\"font-family:宋体;\">单位全称:浙江省体育局<br />\r\n<\/span><span style=\"font-family:宋体;\">地址:杭州市体育场路<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">212<\/span><\/span><span style=\"font-family:宋体;\">号<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span>&nbsp;&nbsp;&nbsp;<\/span><\/span><\/span><span style=\"font-family:宋体;\">网址:<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><a style=\"color:#292929;text-decoration:none;\" href=\"http://www.zjsports.gov.cn/\"><span style=\"color:#0000ff;\">http://www.zjsports.gov.cn<\/span><\/a><br />\r\n<\/span><\/span><span style=\"font-family:宋体;\">传真:<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">0571-85153048<span>&nbsp;&nbsp;&nbsp;<span class=\"Apple-converted-space\">&nbsp;<\/span><\/span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"Apple-converted-space\">&nbsp;<\/span><\/span><span>&nbsp;<\/span>E-mail<\/span><\/span><span style=\"font-family:宋体;\">:<\/span><\/span><\/span><span style=\"font-size:10.5pt;\" lang=\"EN-US\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><a style=\"color:#292929;text-decoration:none;\" href=\"mailto:[email protected]\">[email protected]<\/a><br />\r\n<\/span><\/span><\/span><span><span style=\"color:black;font-size:10.5pt;\" lang=\"EN-US\"><span style=\"font-family:宋体;\">电话:<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">0571-85153091(<\/span><\/span><span style=\"font-family:宋体;\">总机<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">)<span>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"Apple-converted-space\">&nbsp;<\/span><\/span><\/span><\/span><span style=\"font-family:宋体;\">监督电话:<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">0571-85<?xml:namespace prefix = st1 /><st1:rtx w:st=\"on\">1026<\/st1:rtx>91<br />\r\n<\/span><\/span><\/span><\/span>\r\n\t\t\t\t<\/p>\r\n\t\t\t\t<p style=\"border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;\" class=\"MsoNormal\">\r\n\t\t\t\t\t&nbsp;<br />\r\n<strong><span style=\"font-size:large;\"><span style=\"font-family:宋体;\">浙江省体育局主要职责:<\/span><\/span><\/strong><span style=\"font-family:宋体;\"><br />\r\n<\/span><span style=\"color:black;font-size:10.5pt;\" lang=\"EN-US\">&nbsp;&nbsp;<span class=\"Apple-converted-space\">&nbsp;<\/span><\/span><br />\r\n<span style=\"font-size:larger;\"><img style=\"border-bottom:0px;border-left:0px;padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;\" alt=\"\" align=\"left\" src=\"http://www.zjsports.gov.cn/upload/article/2009/8/13/402881832302147b012312d398440197.jpg\" />&nbsp;&nbsp;&nbsp; 一、贯彻执行国家有关体育工作的方针、政策;起草有关体育行政(行业)管理的地方性法规性、规章草案,经审议通过后组织实施。<br />\r\n&nbsp;&nbsp;&nbsp; 二、指导和推动体育体制改革,制定体育发展战略,编制体育事业的中长期发展规划,协调区域性体育发展。<br />\r\n&nbsp;&nbsp;&nbsp; 三、负责全省全民健身工作,指导并开展群众性体育活动,监督实施国家体育锻炼标准,组织开展国民体质监测。<br />\r\n&nbsp;&nbsp;&nbsp; 四、统筹规划竞技体育发展工作,研究和平衡全省体育竞赛、竞技运动项目设置与重点布局;组织开展反兴奋剂工作。<br />\r\n&nbsp;&nbsp;&nbsp; 五、统筹规划青少年体育发展,指导和推进青少年体育工作。<\/span> \r\n\t\t\t\t<\/p>\r\n\t\t\t\t<p style=\"border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;\" class=\"MsoNormal\">\r\n\t\t\t\t\t<span style=\"font-size:larger;\"><\/span><span style=\"font-size:larger;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;六、培育、发展体育产业,研究拟定体育产业和经营活动的政策,归口管理体育市场;制定高危险性体育项目经营活动从业条件和审批程序;负责体育彩票管理工作。协同有关部门规划、协调体育设施建设布局;负责公共体育设施的监督检查。<\/span> \r\n\t\t\t\t<\/p>\r\n\t\t\t\t<p style=\"border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;\" class=\"MsoNormal\">\r\n\t\t\t\t\t<span style=\"font-size:larger;\"><\/span><span style=\"font-size:larger;\">&nbsp;&nbsp;&nbsp;&nbsp;七、组织和指导体育宣传、科研教育工作;组织开展体育干部和体育专业人才的培训工作,加强体育队伍的思想政治工作。<\/span> \r\n\t\t\t\t<\/p>\r\n\t\t\t\t<p style=\"border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;\" class=\"MsoNormal\">\r\n\t\t\t\t\t<span style=\"font-size:larger;\"><\/span><span style=\"font-size:larger;\">&nbsp;&nbsp;&nbsp;&nbsp;八、管理体育外事工作,开展国际间以及与港澳台的体育合作与交流。<\/span> \r\n\t\t\t\t<\/p>\r\n\t\t\t\t<p style=\"border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;\" class=\"MsoNormal\">\r\n\t\t\t\t\t<span style=\"font-size:larger;\"><\/span><span style=\"font-size:larger;\">&nbsp;&nbsp;&nbsp;&nbsp;九、负责全省体育社团的资格审查;依法管理健身气功。<\/span> \r\n\t\t\t\t<\/p>\r\n\t\t\t\t<p style=\"border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;\" class=\"MsoNormal\">\r\n\t\t\t\t\t<span style=\"font-size:larger;\"><\/span><span style=\"font-size:larger;\">&nbsp;&nbsp;&nbsp;&nbsp;十、承办省政府交办的其他事项。<\/span> \r\n\t\t\t\t<\/p>\r\n\t\t\t<\/td>\r\n\t\t<\/tr>\r\n\t<\/tbody>\r\n<\/table>
        System.out.println(substring);

        System.out.println("###################################");
        //下面在把他们转化回去 ,加上隐形的 换行回车等符号
        substring = substring.replace("\\r\\n", "\r\n");
        substring = substring.replace("\\t", "\t");
        substring = substring.replace("\\\"", "\"");
        substring = substring.replace("\\/", "\\");

        System.out.println(substring);
        
        //        <table style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;text-transform:none;background-color:white;text-indent:0px;margin:0px 0px 0px 3pt;padding-left:0px;width:626px;padding-right:0px;font:14px/25px 宋体;white-space:normal;letter-spacing:normal;height:194px;color:#333333;border-top:0px;border-right:0px;word-spacing:0px;padding-top:0px;-webkit-text-stroke-width:0px;" class="ke-zeroborder" border="0" cellspacing="0" cellpadding="0" width="626" bgcolor="#ffffff">
//	<tbody>
//		<tr>
//			<td style="border-bottom:0px;border-left:0px;padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;">
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;">
//					<span><span style="color:black;font-size:10.5pt;" lang="EN-US"><span style="font-family:宋体;">单位全称:浙江省体育局<br />
//</span><span style="font-family:宋体;">地址:杭州市体育场路</span><span lang="EN-US"><span style="font-family:'Times New Roman';">212</span></span><span style="font-family:宋体;">号</span><span lang="EN-US"><span style="font-family:'Times New Roman';"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;</span></span></span><span style="font-family:宋体;">网址:</span><span lang="EN-US"><span style="font-family:'Times New Roman';"><a style="color:#292929;text-decoration:none;" href="http://www.zjsports.gov.cn/"><span style="color:#0000ff;">http://www.zjsports.gov.cn</span></a><br />
//</span></span><span style="font-family:宋体;">传真:</span><span lang="EN-US"><span style="font-family:'Times New Roman';">0571-85153048<span>&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><span>&nbsp;</span>E-mail</span></span><span style="font-family:宋体;">:</span></span></span><span style="font-size:10.5pt;" lang="EN-US"><span lang="EN-US"><span style="font-family:'Times New Roman';"><a style="color:#292929;text-decoration:none;" href="mailto:[email protected]">[email protected]</a><br />
//</span></span></span><span><span style="color:black;font-size:10.5pt;" lang="EN-US"><span style="font-family:宋体;">电话:</span><span lang="EN-US"><span style="font-family:'Times New Roman';">0571-85153091(</span></span><span style="font-family:宋体;">总机</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)<span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span></span><span style="font-family:宋体;">监督电话:</span><span lang="EN-US"><span style="font-family:'Times New Roman';">0571-85<?xml:namespace prefix = st1 /><st1:rtx w:st="on">1026</st1:rtx>91<br />
//</span></span></span></span>
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					&nbsp;<br />
//<strong><span style="font-size:large;"><span style="font-family:宋体;">浙江省体育局主要职责:</span></span></strong><span style="font-family:宋体;"><br />
//</span><span style="color:black;font-size:10.5pt;" lang="EN-US">&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br />
//<span style="font-size:larger;"><img style="border-bottom:0px;border-left:0px;padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" alt="" align="left" src="http://www.zjsports.gov.cn/upload/article/2009/8/13/402881832302147b012312d398440197.jpg" />&nbsp;&nbsp;&nbsp; 一、贯彻执行国家有关体育工作的方针、政策;起草有关体育行政(行业)管理的地方性法规性、规章草案,经审议通过后组织实施。<br />
//&nbsp;&nbsp;&nbsp; 二、指导和推动体育体制改革,制定体育发展战略,编制体育事业的中长期发展规划,协调区域性体育发展。<br />
//&nbsp;&nbsp;&nbsp; 三、负责全省全民健身工作,指导并开展群众性体育活动,监督实施国家体育锻炼标准,组织开展国民体质监测。<br />
//&nbsp;&nbsp;&nbsp; 四、统筹规划竞技体育发展工作,研究和平衡全省体育竞赛、竞技运动项目设置与重点布局;组织开展反兴奋剂工作。<br />
//&nbsp;&nbsp;&nbsp; 五、统筹规划青少年体育发展,指导和推进青少年体育工作。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;六、培育、发展体育产业,研究拟定体育产业和经营活动的政策,归口管理体育市场;制定高危险性体育项目经营活动从业条件和审批程序;负责体育彩票管理工作。协同有关部门规划、协调体育设施建设布局;负责公共体育设施的监督检查。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;七、组织和指导体育宣传、科研教育工作;组织开展体育干部和体育专业人才的培训工作,加强体育队伍的思想政治工作。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;八、管理体育外事工作,开展国际间以及与港澳台的体育合作与交流。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;九、负责全省体育社团的资格审查;依法管理健身气功。</span> 
//				</p>
//				<p style="border-bottom:0px;text-align:left;border-left:0px;padding-bottom:0px;line-height:2em;margin:0cm 0cm 0pt;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" class="MsoNormal">
//					<span style="font-size:larger;"></span><span style="font-size:larger;">&nbsp;&nbsp;&nbsp;&nbsp;十、承办省政府交办的其他事项。</span> 
//				</p>
//			</td>
//		</tr>
//	</tbody>
//</table>
        
        
        
        
//        
//        
//        
//		try {
//			   File file =new File("c:/a.txt");
//			      if(!file.exists()){
//			       file.createNewFile();
//			      }
//		    	  BufferedWriter out = null;   
//		    	         out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file, true),"UTF-8"));   
//		    	         out.write(substring+"\r\n"); 
//		    	                out.close();   
//		} catch (Exception e) {
//			e.printStackTrace();
//			// TODO: handle exception
//		}

        // execute.update("insert into ecms_content_1_wzb1(nr) values(?)", arrayList.toArray());
//                substring= substring.replace(" ","&nbsp;");
//                substring= substring.replace(" ","&nbsp;&nbsp;");
//                substring= substring.replace("\\r\\n","<br/>");
//                substring= substring.replace("\\n","<br/>");
//                System.out.println(substring);
//        execute.update("insert into ecms_content_1_wzb1(nr) values('"+substring+"')", new ArrayList<Object>().toArray());
//        execute.commit();
//        
    }
}

你可能感兴趣的:(html 里的回车换行,制表符 引号,\ 等符号的转化)