cancel
Showing results for 
Search instead for 
Did you mean: 

CMSParagraphComponent is not rendering the HTML tags

Former Member
0 Kudos

CMSParagraphComponent is not rendering the HTML tags in Hybris 5.7 for example like I have created the test component :

INSERT_UPDATE CMSParagraphComponent;$contentCV[unique=true];uid[unique=true];content[lang=en] ;;TestParagraphComponent;"<div&gtXYZ</div>";

Now if I check this 'TestParagraphComponent' component in hMC it shows no div tag it is just rendering the plain text that is XYZ. and in the storefront it shows only the text without the div area.

Apart from this if I copied "XYZ" directly into the Component from hMC then it will show me the div area but in the storefront it shows me hard coded tags same as what I have mentioned in the Component in hMC. For Example : "<div&gtXYZ</div>"

Is there something I missed. Kindly do reply and thanks to all in advance.

Thanks, Vivek

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

I created this component on a little bit different way, binding them to content slot. Tags are displayed correctly.

  INSERT_UPDATE CMSParagraphComponent;uid[unique=true];name;slots(uid,$contentCV[unique=true]); content;$contentCV[unique=true];;TestParagraphComponent;TestParagraphComponent;SomeContentSlot;<div>XYZ</div>

Regards,
Artur