ember-css-url
A helper for safely embedding URLs in style properties. Avoids CSS XSS exposure and sanitizes user-provided URLs.
<div style={{css-url "background-image" @user.avatarURL}} ></div>
<div style='background-image: url("https://example.com/avatar.png")' ></div>
Compatibility
- Ember.js v3.16 or above
- Embroider or ember-auto-import v2
- Node.js v14 or above
Installation
ember install ember-css-url
Usage
[Longer description of how to use the addon in apps.]
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.
v1.0.0 (2022-07-06)
Breaking change is only due to:
- dropping old Node versions
- dropping old Ember versions (minimum is now 3.16)
- requiring ember-auto-import 2 or Embroider
:house: Internal
- #3 Updates to package publishing and metadata (@ef4)
Committers: 1