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.
对属性进行不安全绑定的正确方法是什么?就我而言,我在标题属性中得到了不需要的 HTML 实体:
<a href="..." title="Something "goes bad"">Link</a>
(角度 1.1.5)
"是如何"在 HTML(和 XML)属性中转义的,没有办法绕过它。但是,它将在页面上正确显示。属性内容不会被解析为 HTML,因此不需要等效于bind-html-unsafe.
"
"
bind-html-unsafe