Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: Product summary in search results: HTML not rendering?

  1. #1
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default Product summary in search results: HTML not rendering?

    Hello,

    I did what was explained by George in this thread ( http://forums.aspdotnetstorefront.co...ad.php?t=20697 ) and changed it from Description to Summary. It works great - the product summary shows up on my search results page now.

    The only problem is that the HTML is showing up, it isn't being rendered properly.

    For example, I see this:

    <UL><LI>line item</LI></UL>

    instead of the expected:

    • line item


    What in the world am I doing wrong here? Any help is greatly appreciated!

    Thanks
    Beth
    Last edited by skpr; 10-25-2010 at 12:56 PM.
    http://www.lynxmotion.com
    AspDotNetStorefront ML 8.01.2/8.0.1.2

  2. #2
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default

    I am including my advanced search xml.config file (remove the .doc) and a screenshot of what I am seeing with the modification.

    I have done a little rearranging of the standard search results but that is all merely aesthetic changes.

    The html that is showing up ( <ul> and <li> ) are in the product summary field. Please note that even when I call the product description, the html shows up in plain text instead of being properly rendered.

    I hope someone can help me, it seems it ought to be a simple thing I am missing.

    Thanks much
    Beth
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by skpr; 10-25-2010 at 12:56 PM.
    http://www.lynxmotion.com
    AspDotNetStorefront ML 8.01.2/8.0.1.2

  3. #3
    chrismartz is offline Senior Member
    Join Date
    Apr 2010
    Posts
    339

    Default

    Was your html converted to standard text? For example, the html code:

    Code:
    <ul></ul>
    Was this converted to ?
    Code:
    &lt;ul&gt;&lt;/ul&gt;

  4. #4
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default

    No, the html works fine when I view the summary or description by looking in the categories (image attached; product category view). It's only when I try bringing the summary or description into the search results that I have problems.
    Attached Images Attached Images  
    Last edited by skpr; 10-25-2010 at 02:46 PM.
    http://www.lynxmotion.com
    AspDotNetStorefront ML 8.01.2/8.0.1.2

  5. #5
    skpr is offline Member
    Join Date
    Feb 2010
    Posts
    31

    Default

    Found the problem: in the example code from the other thread, the line used was:

    <xsl:value-of select="$pDescription"/>

    instead of:

    <xsl:value-of select="$pDescription" disable-output-escaping="yes"/>

    Was an easy fix once I finally figured it out...
    http://www.lynxmotion.com
    AspDotNetStorefront ML 8.01.2/8.0.1.2