joiejolie
Forum Replies Created
-
sorry: and, instead, what I get from your plug in is:
<description><![CDATA[Anello Fascia Riviera realizzato in oro bianco 9kt,
con 12 Diamanti naturali Tot. 0.12 carati, Misura 13.
Corredato di scatola gioielleria e certificato di garanzia.]]></description>Hi Sultan,
I’m nout sure why you suggest to use an XML viewer that, in fact, applies an active decoding, defeating the purpose of using CDATA to treat the text as XML entities instead of HTML entities.
I use Notepad++ to view the files (which treats the stream as pure text, as it should) and I can see the text is encoded in HTML entities.
I submitted the feed to the merchant already and the complaint come from them. They can’t upload the feed as it contains HTML entities.Let me put it differently:
If my product description contains the following text:
Anello Fascia Riviera realizzato in oro bianco 9kt,
con 12 Diamanti naturali Tot. 0.12 carati, Misura 13.
Corredato di scatola gioielleria e certificato di garanzia.In my XML, using CDATA, this is what I am expecting:
<description><![CDATA[Anello Fascia Riviera realizzato in oro bianco 9kt, con 12 Diamanti naturali Tot. 0.12 carati, Misura 13. Corredato di scatola gioielleria e certificato di garanzia.]]></description>
and, instead, what I get from your plug in is:
<description><![CDATA[Anello Fascia Riviera realizzato in oro bianco 9kt,
con 12 Diamanti naturali Tot. 0.12 carati, Misura 13.
Corredato di scatola gioielleria e certificato di garanzia.]]></description>Can you fix this or not?
Thanks,
SalvatoreSent
Hi @sultan00rextheme,
there has been an improvement, but the bug is not completely fixed yet.
Let’s start with the fact that I MUST use the CDATA as some fields (Product Name, Description, for example) have special characters, like accented vowels or apostrophes that, if I don’t CDATA them are treated as HTML entities and are encoded.
As for your comment “If you need to add CDATA, then you have to use the output sanitization for it.”, that is exactly what I have been trying to do and that’s when I discovered the bug.
I am sharing 4 screenshots via DropBox:
https://www.dropbox.com/sh/kkpusb783utv599/AACCuJ0yblokvyJyyAzjvetPa?dl=0showing the configuration and the respective XML output using and not using the CDATA sanitization.
As you can see:
when I don’t use the CDATA, the special chars are HTML encoded always (as expected)
when I use the CDATA, not only the special chars are still HTML encoded, but also the <>[] chars of the tag itself are HTML encoded!Can you please advice?
Thanks
SalvatoreBecause of you. I’m sure you will find the solution.
Good job. I’m waiting.Hi Sultan, do you have any answers for me?
Hi Sultan,
thanks for getting back.
Unfortunately, Trovaprezzi does not provide a sample feed and the technical requiraments are only in Italian.
However, the issue is not with the feed format, but with the CDATA attribute converting the text into HTML entities (while it should not).This is the output I get when I select CDATA as the Output Sanitization:
<link><![CDATA[%3c!%5bCDATA%20%5bhttps://www.joiejolie.it/gioielli/anello-trilogy-diamanti/?attribute_pa_lega-metallo=argento-925&attribute_pa_colore-metallo=bianco&attribute_pa_pietre=zircone-bianco%5d%5d%3e]]></link>
<brand><![CDATA [JOIE JOLIE]]></brand>
<description><![CDATA [Disponibile in Argento 925 con zirconi e in Oro 18Kt/750 con zirconi o diamanti.
Pietre num. 3 – Pietra centrale 0,17 carati – Pietre laterali 0,05 carati cad. Tot. 0,27 carati
Caratteristiche Diamante: G/HColor – Taglio Brillante
Il gioiello è corredato di scatola e certificato di garanzia.]]></description>And this is, instead, how it should look:
<link><![CDATA[https://www.joiejolie.it/gioielli/anello-trilogy-diamanti/?attribute_pa_lega-metallo=argento-925&attribute_pa_colore-metallo=bianco&attribute_pa_pietre=zircone-bianco]]></link>
<brand><![CDATA [JOIE JOLIE]]></brand>
<description><![CDATA [Disponibile in Argento 925 con zirconi e in Oro 18Kt/750 con zirconi o diamanti.
Pietre num. 3 – Pietra centrale 0,17 carati – Pietre laterali 0,05 carati cad. Tot. 0,27 carati
Caratteristiche Diamante: G/HColor – Taglio Brillante
Il gioiello è corredato di scatola e certificato di garanzia.]]></description>I reckon (and hope) it’s a quick fix.
Thanks,
Salvatore