Adoxio / xRM-Portals-Community-Edition

The definitive edition of Microsoft Open Source Portals, supported by the experts in portals.
MIT License
107 stars 60 forks source link

Web resources rendered as inline generate incorrect "literal" element #103

Open amervitz opened 5 years ago

amervitz commented 5 years ago

When using the render web resources as inline option on a web form step, the HTML is rendered inside a <literal>...</literal> element which isn't a valid HTML tag.

An example HTML file: image

A CRM form referencing the HTML web resource: image

The setting: image

The rendered HTML: image

The problematic code: https://github.com/Adoxio/xRM-Portals-Community-Edition/blob/77dc1fae0f46c18453dc253ab0060230c73d60cb/Framework/Adxstudio.Xrm/Web/UI/CrmEntityFormView/HtmlWebResourceControlTemplate.cs#L49