-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Export is broken or contains empty fields (addChild does not escape & to &) #488
Comments
yes, you're right. It makes a difference.
|
@TiSiE interessant. Scheint ein gewünschtes Feature zu sein. Wusstest du das? |
Quick fixreplace all Pragmatic fixExtend SimpleXmlElement and make the
DRY and SOLID fixEncapsulate the XML generation in a dedicated class. Maybe a job decorator similar to Jobs\Entity\Decorator\JsonLdProvider. |
+1 DRY and SOLID fix |
@sergey-galenko That's one for you, I suppose :) |
let's wait for @mbo-s opinion. They are the only ones currently using XML export. |
@gastro24 I use the mentioned Quick Fix, so I do not need any change |
Then we should set this onhold. |
Currently the Exportview uses the addChild method and this breaks, if the text contains an ampersand &
e.g. in the title
https://github.com/cross-solution/YAWIK/blob/develop/module/Jobs/view/jobs/export/feed.xml.phtml#L70
here the title is empty
<job id="5b3fc10b0acec3e060f8f502">
<title/>
expected value
<title>Manager Sales & Customer Relations</title>
What works is
$job->addChild('title');
$job->title = $jobObject->getTitle();
The text was updated successfully, but these errors were encountered: