Skip to Content
author's profile photo Former Member
Former Member

CMSParagraphComponent is not rendering the HTML tags

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>XYZ</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>XYZ</div>"

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

Thanks, Vivek

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2016 at 02:28 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.