-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I add an attribute? #54
Comments
You can use my forked package instead, then you'll be able to just add it through the config file, along with having default support for HTML5: https://packagist.org/packages/luketowers/purifier |
@LukeTowers thanks for supporting the project. However, custom attributes don't seem to work for me. I'm trying to pass
Here is the relevant part of my
Am I doing something wrong? Edit: |
@jplew Are you using my package? If so, log an issue on my repository then please: https://github.com/LukeTowers/Purifier |
@LukeTowers yes, I switched to your fork. I just submitted an issue there: LukeTowers#2 |
+1 |
@prjctnxt instead of just adding a +1, could you try playing around with the code mentioned here and see if you can figure out the issue? |
Hi, managed to solve it with this library /stevebauman/purify. One thing that caught me out was that Purifier will still strip your tags unless they are 100% valid. As in (after configuring): I played around with your library before learning about this so not sure if it is a solution? Will take a look when I get a chance :-) |
@prjctnxt Thanks for leaving this comment. I too couldn't get this library to work. Swapped over to https://github.com/stevebauman/purify and had it up and running inside 5 minutes. |
I'm trying to add the
align
attribute to the<table>
tag. I've found the relevant documentation on the htmlpurifier website but can't get figure out how to get it to work with this laravel package.I've put this code in my
config/purifier.php
file but it's still showing the error Attribute 'align' in element 'table' not supportedThe text was updated successfully, but these errors were encountered: