Sandboxing for iFrames #659
Answered
by
BoDonkey
carolinaisslaying
asked this question in
Q&A
-
Kia ora, Is it possible to require sanitise-html to add the sandbox property to iframe tags? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
BoDonkey
Mar 15, 2024
Replies: 1 comment 1 reply
-
Howdy,
This will let you do other sanitization at the same time. You might be able to just use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
carolinaisslaying
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Howdy,
You should be able to accomplish this with transformations.
https://github.com/apostrophecms/sanitize-html?tab=readme-ov-file#transformations
Just keep the iframe tag -
This will let you do other sanitization at the same time. You might be able to just use
simpleTransform
instead.Cheers,
…