根据 htmlcompressor.com 的作者,这是无法做到的,因为它们具有语义含义。
这是一个特定的例子:
<meta name='description' content='Foo lets you save and share all your
web bookmarks / favorites in one place. It is free with no advertising for life, and
has straight forward privacy controls.'>
删除您拥有的返回字符:
<meta name='description' content='Foo lets you save and share all your web bookmarks / favorites in one place. It is free with no advertising for life, and has straight forward privacy controls.'>
这是我要发送到浏览器的单行。
我想使用一些字符串操作对我所有的 HTML 执行此操作。这是可能的还是有其他情况下返回字符有意义?有没有办法区分?