Remove all the line breaks from the html source

前端 未结 9 2044
情书的邮戳
情书的邮戳 2020-11-27 04:50

Well I know obfuscation is a bad idea. But I want all of my html code to come in one long single line. All the html tags are generated through PHP, so I think its possible.

9条回答
  •  醉酒成梦
    2020-11-27 05:26

    You can't have

    inside

    - it is not spec-valid.

    If you don't need to store it in a variable you can use this:

    ?>
    Hello

提交回复
热议问题