Problem with Allow HTML Tags

Stimulsoft Reports.WEB discussion
Post Reply
eric_stimulsoft
Posts: 25
Joined: Tue Feb 25, 2014 5:14 am
Location: Jupiter

Problem with Allow HTML Tags

Post 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!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with Allow HTML Tags

Post 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.
eric_stimulsoft
Posts: 25
Joined: Tue Feb 25, 2014 5:14 am
Location: Jupiter

Re: Problem with Allow HTML Tags

Post by eric_stimulsoft »

is there no other way to decode the text then apply the Allow HTML tags in the designer?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with Allow HTML Tags

Post by HighAley »

Hello.

You could do it in the Get Value event.

Thank you.
eric_stimulsoft
Posts: 25
Joined: Tue Feb 25, 2014 5:14 am
Location: Jupiter

Re: Problem with Allow HTML Tags

Post by eric_stimulsoft »

can you please provide a sample code on how to do this in the get value event?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with Allow HTML Tags

Post by HighAley »

Hello.

You could use XmlConvert.DecodeName Method.

Thank you.
Post Reply