Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Fontello 图标。为此,我需要将 innerHTML 设置为. 然而,&不断逃脱,我不想危险地使用 set html。反正有这个用吗?

&
它说我也可以使用0xe821,但我不知道如何使用。
0xe821
我的代码:
React.createClass({ render: function() { return React.createElement('div', {}, ''); }});
你可以'\ue831'改用。它直接在字符串字面量中定义一个字符,因此 React 不需要也不会转义它。
'\ue831'