Page 1 of 2

Problem with HTML component.

Posted: Sun Nov 01, 2020 2:32 am
by ZermattMan

I am trying to show a field from a table, in an HTML componenent,

I have followed the example in the RSS project. Declaring the field as an HTML, and setting class to appiery-html.
The table is read and displayed, but the HTML field shows as text with the html characters on display.

Any help would be appreciated

ZermattMan


Re: Problem with HTML component.

Posted: Mon Nov 02, 2020 5:47 pm
by Serhii Kulibaba

Hello,

Could you please provide us with more details, screenshots, or exact steps to reproduce this problem?


Re: Problem with HTML component.

Posted: Tue Nov 03, 2020 1:02 am
by ZermattMan

Please accept my apologies for the poor details!

The attached screenshots show the definition of my HTML component and the resulting display.

Image


Re: Problem with HTML component.

Posted: Tue Nov 03, 2020 3:15 pm
by Serhii Kulibaba

It seems you have set it in the tab "WYSIWYG", not "HTML Source". Please use exactly "HTML Source" for that


Re: Problem with HTML component.

Posted: Thu Nov 05, 2020 6:29 am
by ZermattMan

I am inputting it from a table. How do I map it to the tab you mentiion?


Re: Problem with HTML component.

Posted: Fri Nov 06, 2020 3:46 pm
by Serhii Kulibaba

Could you please provide us with more details, screenshots or exact steps to reproduce this problem?


Re: Problem with HTML component.

Posted: Tue Nov 10, 2020 4:51 am
by ZermattMan

You can see how I map my field "Description" to the HTML field on my page.
How do I map it as HTML and not text?


Re: Problem with HTML component.

Posted: Mon Nov 16, 2020 5:05 pm
by Serhii Kulibaba

Yes, the mapping is correct. What value exactly does your property "Description" have?


Re: Problem with HTML component.

Posted: Tue Nov 17, 2020 5:25 am
by ZermattMan

Description is a field from a table. It contains HTML. You can see it in the second attachment, above.

It starts ::""Father taken as a POW at Dunkirk..."


Re: Problem with HTML component.

Posted: Tue Nov 17, 2020 3:32 pm
by Serhii Kulibaba

Could you please provide us with a screenshot of that value from the database? It might have the safe HTML codes, not a real HTML layout: https://www.obkb.com/dcljr/charstxt.html

Please provide us with a public app link (https://docs.appery.io/docs/testingande ... app-public) and exact steps to reproduce this problem.