html 组装过程中给 属性绑定变量 如 value, title, name 等,如果变量有空格 - archering/basic GitHub Wiki

https://blog.csdn.net/zhouxukun123/article/details/78650706

看上面这篇文章

给 title 属性值再加一层双引号(如果外层为双引号,则加单引号),这样保证引号内的值为一个完整的字符串