Topic: Corrupt config.xml when "&" is used in title in the Lightroom plugin

If I use a title with an "&" in it, the preview in Lightroom will not render and the generated config.xml will not work. Changing the "&" to "&" in the title or in the config.xml will make things work again.

Using juicebox 1.1.1 and lightroom plugin v1.1.1

Fabian

Re: Corrupt config.xml when "&" is used in title in the Lightroom plugin

This is a known issue to which there is no known fix other than entering XML entities into the Gallery Title text field in their escaped forms as below:

& (Ampersand)                  ->    &
< (Left angle bracket)         ->    &lt;
> (Right angle bracket)        ->    &gt;
" (Straight quotation mark)    ->    &quot;
' (Apostrophe)                 ->    &apos;

Re: Corrupt config.xml when "&" is used in title in the Lightroom plugin

what a pitty but ok for me.

Re: Corrupt config.xml when "&" is used in title in the Lightroom plugin

the only solution would be to make a config.xml schema change so the gallery title is a tag instead of an attribute. then we can use a CDATA element, where "&" and the others are no problem . . .

Re: Corrupt config.xml when "&" is used in title in the Lightroom plugin

You could also set the Gallery Title in the embedding code rather than in the XML file.
Remove the following line from the 'juicebox.lrwebengine/config.xml' file:

galleryTitle="<%= model.nonCSS.jb_galleryTitle %>"

... and add the following line to the embedding code (immediately after the new juicebox({ line) in the 'juicebox.lrwebengine/index.html' file:

galleryTitle: '<%= model.nonCSS.jb_galleryTitle %>',

Re: Corrupt config.xml when "&" is used in title in the Lightroom plugin

This is a nice solution, "&" works and <br /> works as a linebreak too.

Thank you!