Sanitize PHP heredoc syntax #2825
Replies: 1 comment
-
I will find another solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to 'clone' Raw HTML Tool plugin, to render PHP code blocks.
However, when I try to write some PHP using the Heredoc syntax the content get sanitized with HTML rules, so:
Turn into:
I guess the sanitize rules don't allow "<<<".
I read the documentation about the sanitizer but I have no clue if I can implement a sanitzer rules configuration to 'accept' PHP headoc syntax.
Do you think it's possible?
I might need to remove the automatic sanitizer and add a sanitizerConfig, but I'm not sure. Do you have any advice?
Apologies for my beginner level, and thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions