Closed samo4b closed 9 months ago
I just double checked and i cannot reproduce this problem on my side with the latest version. What Version of fsxa-api do you use?
You can check what Version is used with npm list fsxa-api
This is a missing/wrong configuration in FirstSpirit. FirstSpirit should output an XML entity. Therefore you have to specify in the corresponding (or in every) format template for "conversion" a rule wich replaces these characters with their respective entities in the first channel. There is e.g. a conversion rule named "CaaS" for this.
@neo-reply-lukas We are using the latest versions:
"fsxa-api": "10.18.0",
"fsxa-nuxt-module": "npm:@neo-reply/fsxa-nuxt-module@8.0.0",
"fsxa-pattern-library": "npm:@neo-reply/fsxa-pattern-library@9.1.0",
@jodeleit-es I'll try that out and see if that helps us.
@jodeleit-es We don't have any "CaaS" Conversion on our side (but something we could try out).
Does this conversion really apply to the data which is then available in the CaaS?
Does this conversion really apply to the data which is then available in the CaaS?
Yes
@jodeleit-es Ok thanks I'll let the rule get set up and if that works for us I can close the ticket.
@jodeleit-es Thank you for the hint it worked out great! It solved every issue we had with & and the FSXARichText.
Just as an example:
Result in the Frontend:
We get an error whenever we try to add an
&
inside a CMS_INPUT_DOM element. The text is just a plain text without any styling:However in the Frontend we get the following error:
We do use this in the Frontend:
And inside the individual components extended by FSXABaseRichTextElement we simply use
<render-content />
with a bit of styling:This leads to the problem that everything from the & til the end is missing in the Frontend:![image](https://github.com/e-Spirit/javascript-content-api-library/assets/49033570/cb636281-1915-4e72-a7b4-f940cdc7e8f6)
Reference to the API (where this very likely goes wrong): XMLParser.ts#55
I suspect that the escaping with ENTITIES is not correctly applied but that is just my guess. Please have a look at it.