Tag: spec预览模式: 普通 | 列表
07-08
14

解析html spec的类方法,HTML转义

比如说,我要在我的web页面里面产生"<B>"这样一个字符串。我可不想写

举例:<B>转换为& l t ; B & g t ;  ,也就是HTMLEncode与HTMLDecod转换

手动编写一个类

public static String enableTag(String input) throws IOException {
if (input == null) {
return null;

查看更多...

Tags: spec

分类:学习 | 固定链接 | 评论: 2 | 引用: 0 | 查看次数: 1129