-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ampersand handling #692
Comments
Maybe an easier (central) workaround until the issue is solved: lookup the
Change it to:
|
Or even better: override it in the child class like this:
|
refs #624 |
Is there a function that will clean up an entire object? I have some entities with one to many relations that of course have entire collections in them, and cascade persist. So keeping them "clean" is becoming incredibly unwieldy doing it one field at a time. |
Fixed in f4f1cd0 |
No there isn't a better solution implemented yet. If you come up with something please propose it :-) |
Maybe the whole method is not required anymore in 1.4.3+ modules, because Twig is now used which should do output sanitising automatically. We need to recheck this. |
Disabled the method for 1.4.x in 0d24a56 |
I am using MOST 06.2, so this might be an old issue.
I am doing some heavy data processing while importing data. I am finding repeatedly, in many entities, that text values containing ampersands aren't handled nicely. The gist of the problem is that the data is initially persisted correctly, for example "A & B" as "A & B". However if that entity is gotten, manipulated and then persisted again (perhaps in a cascade) it is saved as "A & B". If it happens many times, it gets really ridiculous and causes validation errors related to string length. The latest example is a URL string query value, for example:
http://www.domain.com/WebSync/Pages/Team/TeamSchedule.aspx?association=10&sg=MBB&team=389
As a workaround, I am html_entity_decode() on these values after they are gotten, so that they will be persisted correctly. But I have now accumulated a long list of values I have to do this to.
The text was updated successfully, but these errors were encountered: