I have found a post concerning this, but the last time it was touched was in june 2010. It also has no real solution.
given this :
{embed=“part/subpage_layout_full”
subhead=”{sp_bot_c1_subhead}” summary=”{sp_bot_c1_summary}” additional=”{sp_bot_c1_additional}”}
If any of the three embeded fields contain a double quote (”) the rendering will break. I assume this is because the tags are being expanded and then the embed is being processed.
This is unacceptable.
There are a few fixes I’ve considered. I could use single quotes instead of double quotes in the tag. Of course this means that everything will then break if I use single quotes in any of the fields. Since this site is being shipped to a client it’s also unacceptable, and also simply not a fix.
The only other thing I could conceivably do is to preprocess all the variables in php first then pass them through the template and then potentially process them in the embedded template as well. This seems like a giant hack.
Is there some reason why EL doesn’t solve for this already? It makes embeds with user generated variables non-bulletproof in a way that makes me want to discontinue using embeds. While not DRY it’s the only way I can be sure that my client doesn’t break their own site by doing something simple like putting a quote in a custom field!
