Developer forum

Forum » Ecommerce - Standard features » Product Comment text issue when using encoded chars

Product Comment text issue when using encoded chars

Ricardo Pereira
Ricardo Pereira
Reply

Hi Guys,

I'm having an issue with encoded chars in the CommentText field of the product.
So, the field CommentText in the database has a value like: "some text.. ™ ..some text"
But, in the front-end, using the code below, the tag "item.GetString("Text")" returns ™ 

Code:

@foreach (LoopItem item in GetLoop("Comments.Newfirst") {
      @item.GetString("Text")
 }

Is this a DW bug?
The version of the DW is 8.9.2.13

Best Regards,
Ricardo Pereira

 

 


Replies

 
Nicolai Pedersen
Reply

Nope. Dynamicweb does not encode.So my guess is that it would be your template.

 
Nicolai Pedersen
Reply
This post has been marked as an answer

It is the comment module that does the html encode on output. So do not put html encoded text in the database.

Votes for this answer: 1
 
Ricardo Pereira
Ricardo Pereira
Reply

Thank you, Nicolai.

 

You must be logged in to post in the forum