My code is test.html:
我的代码是test.html:
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
converting to
转换成
<!DOCTYPE html><html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html>
I am using manual converting , please tell me there is any online converter for converting multiline html code to single line html
我正在使用手动转换,请告诉我有任何在线转换器可以将多行html代码转换为单行html
7 个解决方案
#1
3
Try this :
试试这个:
Minify HTML (or XHTML), and any CSS or JS included in your markup
缩小HTML(或XHTML)以及标记中包含的任何CSS或JS
http://www.willpeavy.com/minifier/
http://www.willpeavy.com/minifier/
#2
3
Have yuou heard about this?
你听说过这个吗?
http://www.willpeavy.com/minifier/
http://www.willpeavy.com/minifier/
Or This
或者这个
http://www.textfixer.com/html/compress-html-compression.php
http://www.textfixer.com/html/compress-html-compression.php
#4
1
Here is a website that claims to do this..
http://www.odditysoftware.com/page-webtools16.htm
这是一个声称要这么做的网站。http://www.odditysoftware.com/page-webtools16.htm
#5
1
Try to use StringUtils.chomp
尝试使用StringUtils.chomp
BufferedReader bufferedReader = new BufferedReader(new FileReader(FILE_NAME));
String s = null;
StringBuilder stringBuilder = new StringBuilder();
while((s = bufferedReader.readLine()) != null)
{
stringBuilder.append(StringUtils.chomp(s));
}
System.out.println("stringBuilder : "+stringBuilder);
#6
0
use http://htmlcompressor.com/compressor/ Click 'Show options' and check 'Single line html output'
使用http://htmlcompressor.com/compressor/单击“Show options”并检查“单行html输出”
#7
0
you can use any of the following to do this:
你可以使用以下任何一种方法来做:
http://www.willpeavy.com/minifier/ or http://www.iwebtool.com/html_optimizer
http://www.willpeavy.com/minifier/或http://www.iwebtool.com/html_optimizer
#1
3
Try this :
试试这个:
Minify HTML (or XHTML), and any CSS or JS included in your markup
缩小HTML(或XHTML)以及标记中包含的任何CSS或JS
http://www.willpeavy.com/minifier/
http://www.willpeavy.com/minifier/
#2
3
Have yuou heard about this?
你听说过这个吗?
http://www.willpeavy.com/minifier/
http://www.willpeavy.com/minifier/
Or This
或者这个
http://www.textfixer.com/html/compress-html-compression.php
http://www.textfixer.com/html/compress-html-compression.php
#3
#4
1
Here is a website that claims to do this..
http://www.odditysoftware.com/page-webtools16.htm
这是一个声称要这么做的网站。http://www.odditysoftware.com/page-webtools16.htm
#5
1
Try to use StringUtils.chomp
尝试使用StringUtils.chomp
BufferedReader bufferedReader = new BufferedReader(new FileReader(FILE_NAME));
String s = null;
StringBuilder stringBuilder = new StringBuilder();
while((s = bufferedReader.readLine()) != null)
{
stringBuilder.append(StringUtils.chomp(s));
}
System.out.println("stringBuilder : "+stringBuilder);
#6
0
use http://htmlcompressor.com/compressor/ Click 'Show options' and check 'Single line html output'
使用http://htmlcompressor.com/compressor/单击“Show options”并检查“单行html输出”
#7
0
you can use any of the following to do this:
你可以使用以下任何一种方法来做:
http://www.willpeavy.com/minifier/ or http://www.iwebtool.com/html_optimizer
http://www.willpeavy.com/minifier/或http://www.iwebtool.com/html_optimizer