Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Ampersands and JavaScript bitwise & operator #7684

Closed
qzminski opened this issue Mar 12, 2015 · 4 comments
Closed

Ampersands and JavaScript bitwise & operator #7684

qzminski opened this issue Mar 12, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@qzminski
Copy link
Member

I have found out that if you use the JavaScript bitwise & operator in the output code, the Contao will break your code by converting it into &.

https://github.com/contao/core/blob/master/system/modules/core/classes/FrontendTemplate.php#L73

@bytehead
Copy link
Member

Same here - thanks for investigation :)

@leofeyer leofeyer added this to the 3.2.20 milestone Mar 20, 2015
@discordier
Copy link
Contributor

While at it, we could also address the issue about the minifying removing spaces within javascript code as well.
Script tags have to be excluded from all template scraping at all costs.

@leofeyer leofeyer self-assigned this Mar 23, 2015
@leofeyer
Copy link
Member

@discordier I've just checked and the issue is not related to the minifyHtml() method.

https://github.com/contao/core/blob/master/system/modules/core/classes/FrontendTemplate.php#L73

@leofeyer
Copy link
Member

Fixed in f4e47e8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants