Page 1 of 1

Problem with Allow HTML Tags

Posted: Thu Nov 27, 2014 6:41 am
by eric_stimulsoft
Hi,

I'm using the web StiMvcDesigner and i have a problem with the Allow HTML Tags property.

The string value that i am receiving from the DB is like this:
<p>Change Oil</p><p>Change Oil Filter</p><p>Relace 1</p>
This is how its displayed in the viewer when the Allow HTML Tags property is set to true:
<p>Change Oil</p><p>Change Oil Filter</p><p>Relace 1</p>
it just decode the string but didn't applied the HTML Tags.

Hoping for your fast reply.

Thanks!

Re: Problem with Allow HTML Tags

Posted: Thu Nov 27, 2014 12:33 pm
by HighAley
Hello.

Yes. This is a normal behavior. In your case the text should be with the right symbols but not their character references.

Thank you.

Re: Problem with Allow HTML Tags

Posted: Fri Nov 28, 2014 1:45 am
by eric_stimulsoft
is there no other way to decode the text then apply the Allow HTML tags in the designer?

Re: Problem with Allow HTML Tags

Posted: Fri Nov 28, 2014 4:46 pm
by HighAley
Hello.

You could do it in the Get Value event.

Thank you.

Re: Problem with Allow HTML Tags

Posted: Wed Dec 03, 2014 7:00 am
by eric_stimulsoft
can you please provide a sample code on how to do this in the get value event?

Re: Problem with Allow HTML Tags

Posted: Wed Dec 03, 2014 11:01 am
by HighAley
Hello.

You could use XmlConvert.DecodeName Method.

Thank you.