archimag / cl-sanitize Goto Github PK
View Code? Open in Web Editor NEWWhitelist-based Common Lisp HTML sanitizer
License: Other
Whitelist-based Common Lisp HTML sanitizer
License: Other
Reading the cl-libxml2, I thought that it would be possible to use the clean function with pathnames. Am I right?
(sanitize:clean #p"teste-0.html" sanitize:+BASIC+)
Is it the right way to parse files?
Best,
Alexandre
Please consider adding :description, :author and :license information to your ASDF system(s). This will greatly help Quicklisp users and make it easier for them to report bugs.
More information:
http://blog.quicklisp.org/2015/05/looking-for-more-metadata.html
https://www.quicklisp.org
Hello,
It seems that cl-sanitize is not installable from quicklisp in Mac OS 10.7.2. I tried from SBCL and Allegro CL. The error seems to be with cl-libxml2:
(ql:quickload :cl-libxml2)
To load "cl-libxml2":
Load 1 ASDF system:
cl-libxml2
; Loading "cl-libxml2"
Unable to load any of the alternatives:
("libxml2.so" "libxml2.so.2")
[Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR]
Restarts:
0: [RETRY] Try loading the foreign library again.
1: [USE-VALUE] Use another library instead.
2: [SKIP] Skip loading foreign library libxml2.
3: [RETRY] retry the load of /Users/arademaker/.cache/common-lisp/acl-8.2a-macosx-x64/Users/arademaker/quicklisp/dists/quicklisp/software/cl-libxml2-20111001-git/tree/xtree.fasl
4: [SKIP] skip loading /Users/arademaker/.cache/common-lisp/acl-8.2a-macosx-x64/Users/arademaker/quicklisp/dists/quicklisp/software/cl-libxml2-20111001-git/tree/xtree.fasl
5: [TRY-RECOMPILING] Recompile xtree and try loading it again
--more--
Backtrace:
0: (ERROR CFFI:LOAD-FOREIGN-LIBRARY-ERROR :FORMAT-CONTROL "Unable to load any of the alternatives:~% S" :FORMAT-ARGUMENTS (("libxml2.so" "libxml2.so.2")))% ~S" ("libxml2.so" "libxml2.so.2"))
1: (CFFI::FL-ERROR "Unable to load any of the alternatives:
2: (CFFI::TRY-FOREIGN-LIBRARY-ALTERNATIVES LIBXML2.TREE::LIBXML2 ("libxml2.so" "libxml2.so.2"))
3: (CFFI::LOAD-FOREIGN-LIBRARY-HELPER LIBXML2.TREE::LIBXML2 (:OR "libxml2.so" "libxml2.so.2") NIL)
4: ((FLET CFFI::%DO-LOAD-FOREIGN-LIBRARY CFFI::%DO-LOAD) #<CFFI:FOREIGN-LIBRARY @ #x1001b758d2> LIBXML2.TREE::LIBXML2 (:OR "libxml2.so" "libxml2.so.2"))
5: (CFFI::%DO-LOAD-FOREIGN-LIBRARY LIBXML2.TREE::LIBXML2 NIL)
6: (CFFI:LOAD-FOREIGN-LIBRARY LIBXML2.TREE::LIBXML2)
7: ((:TOP-LEVEL-FORM "xtree.lisp" 547))
....
Any idea?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.