Comments (4)
Hi @mbarwick83,
Aren't you able to add these properties into the configuration file in CSS.AllowedProperties
? This configuration array is passed directly to the HtmlPurifier
instance:
https://github.com/stevebauman/purify/blob/master/src/Config/config.php#L101
https://github.com/stevebauman/purify/blob/master/src/Purify.php#L42
from purify.
I tried...got an error about it not being supported, etc.
from purify.
Can you post the exception that you received?
Unfortunately this may be a HtmlPurifier issue, going to take a further look into this.
from purify.
You need to add the attribute definition for these attributes manually unfortunately:
http://htmlpurifier.org/phorum/read.php?2,6154
You can do so by retrieving the HTML Purifier instance inside your AppServiceProvider
(or anywhere else you'd like):
$htmlPurifier = Purfiy::getPurifier();
from purify.
Related Issues (20)
- Iframe allowfullscreen not enabled HOT 3
- 'Cache.SerializerPath' does not work with Dynamic Configuration HOT 1
- It's not working as it should ? HOT 3
- Readme says - Register PurifySetupProvider in "app/config.php" - should be "config/app.php" HOT 1
- License HOT 1
- Problem table HOT 3
- oembed / CKeditor HOT 1
- Laravel 9 support HOT 5
- Booleans are nullified HOT 3
- Vapor / Other storage drivers Support HOT 7
- Definition with HTMLPurifier_HTMLDefinition not working HOT 5
- Laravel 10 support HOT 1
- Allow all css and style HOT 7
- Multiple configs? HOT 1
- CSS.AllowedProperties 'Left' doesn't work [Issue Created By Mistake]
- Cache.DefinitionImpl / Cache.SerializerPath is ignored HOT 7
- Image style attributes stripped HOT 1
- "A & B" turns it into "A & B" HOT 3
- Using purify with code/pre tags allowed crashes swoole worker processes HOT 3
- New definition of Trix editor HOT 2
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 purify.