Rich Text Control incorrectly displays HTML content

  • 15 February 2022
  • 0 replies
  • 16 views

Userlevel 5
Badge +20
 

Rich Text Control incorrectly displays HTML content

kbt151040

PRODUCT
K2 Five
K2 blackpearl
TAGS
SmartObjects
Controls
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

HTML content loaded on Rich Text Control via SmartObject load/read method does not get rendered correctly.

Symptoms

The Rich Text Control stops rendering the content once it spots invalid HTML.

For example: This line should be changed:

<span style="line-height:28px; font-family:&quot;Arial&quot;,serif; font-size:24px; font-weight:bold">

 

to:

<span style="line-height:28px; font-family:Arial,serif; font-size:24px; font-weight:bold">

Troubleshooting Steps

Ensure that the SmartObject used to load the content to the Rich Text Control is storing valid HTML.


0 replies

Be the first to reply!

Reply