Comments (3)
You can disable svg sanitization completely by adding \Statamic\Tags\Svg::disableSanitization();
to your AppServiceProvider
's boot
method.
from cms.
You have a class
on the svg itself, and a class
on the svg tag. When it gets sanitized, it must be getting confused.
You can either delete the classes off the svg, or add sanitize="false"
to the tag.
from cms.
You have a
class
on the svg itself, and aclass
on the svg tag. When it gets sanitized, it must be getting confused.You can either delete the classes off the svg, or add
sanitize="false"
to the tag.
It looks like we now have to use sanitize="false"
to also add other attributes even if they're not in the svg file. For example I often include role="img"
on svgs for accessibility reasons, that only works with sanitize="false"
even though role isn't in the svg.
from cms.
Related Issues (20)
- Slow website response times after update to 5.7 HOT 12
- GraphQL filter not working as intended HOT 3
- Stache Clear Slow HOT 3
- Asset Fieldtype performs multiple queries when templating using Colon Instead of tag pair HOT 2
- Entries sometimes won't publish HOT 4
- Validation with conditionally hidden field doesn't work with the sometimes option HOT 2
- Global Set not shown unless there is a file in /content/globals HOT 4
- The hidden fieldtype (label and value) are always visible in submission email HOT 1
- Updated to 5.8.0, I can't save pages? HOT 5
- Collapsing/expanding a structured collection in a stack selects item
- Optional labels on Button Group are not optional? HOT 1
- Handles with double underscores invalidate in Statamic 5 HOT 6
- Git integration throwing error unnecessarily
- Revision history panel of unpublished entries loads indefinitely
- Password resetter not defined error HOT 4
- Stache is refreshed too late
- Collection widget pagination overflows
- Error when filtering users by role or group using eloquent and a custom user table name
- "Window" in the pagination not working as documented HOT 1
- can't use custom api route/controller while REST api enabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms.