Claus Posted March 7, 2022 Posted March 7, 2022 Hello people. I want to inject some ad hoc SVG objects into a page using Hanna code. The code is sanitised SVG + some JS to run the animations in it. However I can’t get my Hanna-code snippet to just be inserted into the relevant page. If I set ‘Code type’ to ‘Text/HTML’ I get this: When I choose JS I get: <script type='text/javascript'>var attr = { }; <object type="image/svg+xml"><svg xmlns="http://www … What do I do?
Claus Posted March 7, 2022 Author Posted March 7, 2022 Oh, so it was because I had wrapped the code in an <object> tag. Removing it fixed it, so Hanna Code works as expected.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now