数据URI主体中不转义的'#'字符已弃用;如何在项目中找到? [英] Unescaped '#' characters in a data URI body deprecated; How to find in project?

查看:139
本文介绍了数据URI主体中不转义的'#'字符已弃用;如何在项目中找到?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Angular 2+应用程序中从Chrome收到此警告.好的,那么我应该如何去发现在我的项目中出现这么多数据URI的问题所在?我想等它失败吗? kes.

I'm getting this warning from Chrome in my Angular 2+ application. Ok, so how am I supposed to go about finding where this issue is occurring in my project with so many data URIs? Wait for it to fail, I suppose? Yikes.

[不建议使用]在数据URI正文中使用未转义的'#'字符是 已弃用,将于2018年5月左右在M67中删除.请使用 取而代之的是'%23'.看 https://www.chromestatus.com/features/5656049583390720 了解更多 详细信息.

[Deprecation] Using unescaped '#' characters in a data URI body is deprecated and will be removed in M67, around May 2018. Please use '%23' instead. See https://www.chromestatus.com/features/5656049583390720 for more details.

似乎它们应该以某种方式指向源.有什么想法吗?

Seems like they should point to the source somehow. Any ideas?

推荐答案

如果您有内联SVG,请查看颜色参考并将#rrggbb替换为rgb(R,G,B).应该会有帮助.

If you have inline SVG, look at color references and replace #rrggbb with rgb(R, G, B). It should help.

来源: https://github.com/stylus/stylus/issues/2379

这篇关于数据URI主体中不转义的'#'字符已弃用;如何在项目中找到?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆