-
Notifications
You must be signed in to change notification settings - Fork 429
escape-cdata doesn't work on <script> tags #659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@dechamps thank you for the issue, but am unsure exactly what you are pointing out here... that is what change are you suggesting... I am not sure I fully understand Using the option
will give a virtually unchanged output of -
Now adding the option
That is more or less as the docs stated. The Of course I agree the current docs description leaves something to be desired... could/should be expanded to explain this more clearly... welcome ideas, patches, PR to do that... thanks... Now, if as you have done, you put the Script, and style tags, and maybe some others, already tell tidy to not mess too much with the Then in your sample, you add the complication of adding an And then I see your next #660 also deals with tidy adding Anyway, does this answer why "escape-cdata doesn't seem to work"? It does change Please explain more if so... thanks... |
I think we're on the same page.
Ah, interesting. I only tested CDATA sections in It's a bit unfortunate that tidy tries to not mess with the content of |
Documentation states:
On current HEAD (f0438bd):
Returns:
The CDATA section is still there.
The text was updated successfully, but these errors were encountered: