Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否去除模板文件里面的html空格与换行 BUG修正 #13

Open
wxkxklmyt opened this issue May 16, 2021 · 0 comments
Open

是否去除模板文件里面的html空格与换行 BUG修正 #13

wxkxklmyt opened this issue May 16, 2021 · 0 comments

Comments

@wxkxklmyt
Copy link

wxkxklmyt commented May 16, 2021

$replace = ['><', '>'];

问题描述:
在前面布局的时候,比如只需要一个空格的间距,通常不会用CSS样式去设置间距。例如两个A标签之间我只需要一个空格的间距,现在的情况是空格被全部替换了,导致两个A标签看起来像是一个A标签,因为A标签的默认样式被我用CSS初始化了。
修复前:
$replace = ['><', '>'];
修复后
$replace = ['> <', '>'];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant