Is there the a way to prevent HTML escaping inside a Polymer expression? [duplicate]

◇◆丶佛笑我妖孽 提交于 2019-12-05 15:45:00
Günter Zöchbauer

Update

A ready-to-use element for Dart Polymer 1.0 is bwu-bind-html


No there isn't. This is intentional because it is prone to XSS attacks. What you can do is to use an element like <safe-html> instead.

My answer to this question HTML Tags Within Internationalized Strings In Polymer.dart shows the full source code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!