A way to escape everything, but safe links #533
Answered
by
afreakanist
afreakanist
asked this question in
Q&A
-
Hello! I'd like to escape everything with any attrs, but safe links. Those I'd like to allow to be rendered as links. Is there such an option?
In any case, thank you for your attention and the great instrument you made. |
Beta Was this translation helpful? Give feedback.
Answered by
afreakanist
Feb 2, 2022
Replies: 1 comment
-
Case closed! I found a workaround by defining two separate functions with a slightly different configs, so I can both sanitize links and escape everything else. Rubber duck method, huh) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
afreakanist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Case closed! I found a workaround by defining two separate functions with a slightly different configs, so I can both sanitize links and escape everything else. Rubber duck method, huh)