我有段这样的html代码:
<A href=\"http://192.168.0.213/images/logo02.jpg\" target=_blank><font>111</font><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width<500){this.height>600}\" border=0></A>很好<BR><A href=\"http://192.168.0.213/images/logo02.jpg\" target=_blank><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width>500){this.width=500}\" border=0></A><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width>500){this.width=500}\" border=0><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width>500){this.width=500}\" border=0><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width>500){this.width=500}\" border=0>晕晕~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~WE<BR>";
我想通过java程序截取一段我想要长度的带有html格式的字符,找了些资料,但是没有理想的答案
请求高手给予代码
<A href=\"http://192.168.0.213/images/logo02.jpg\" target=_blank><font>111</font><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width<500){this.height>600}\" border=0></A>很好<BR><A href=\"http://192.168.0.213/images/logo02.jpg\" target=_blank><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width>500){this.width=500}\" border=0></A><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width>500){this.width=500}\" border=0><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width>500){this.width=500}\" border=0><IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width>500){this.width=500}\" border=0>晕晕~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~WE<BR>";
我想通过java程序截取一段我想要长度的带有html格式的字符,找了些资料,但是没有理想的答案
请求高手给予代码
解决方案 »
- spring3 mvc进行表单校验时,使用annotation-driven后,@ResponseBody乱码问题
- 请问SPRING2MVC中的代码是什么含义
- 通过jdk注解生成的webservice ,怎么取得客户端的IP和MAC?
- 怎么实现页面自动登录!它的机制是什么?jsp方面的
- tomcat6.0下连接sql server 2000的环境怎样设置啊?
- jsp中表达式的问题
- 为啥ActiveXObject("Word.Application")在JSP页面中出错?
- 招聘北京JSP程序员,月工资5000元左右
- 非jsp的问题,请帮帮忙
- 请教一个spirng自动注入失败的问题
- 刷新 jsp 页面
- 用户通过apache的转发来访问应用,如何获取用户访问apache的地址端口?
这样一段代码,不是我想要的这样一段:<A href=\"http://192.168.0.213/images/logo02.jpg\" target=_blank> <font>111 </font> <IMG src=\"http://192.168.0.213/images/logo02.jpg\" onload=\"if (this.width <500){this.height>600}\" border=0> </A>很