You are viewing limited content. For full access, please sign in.

Question

Question

Upgrading Weblink, HTML code no longer being interpreted in text label?

asked on July 30, 2021 Show version history

We're upgrading Weblink and noticing that text fields added to a search form are no longer interpreting HTML code the way the earlier version of Weblink did.

For example, we have a text item in the search form that contains text like this in order to make a clickable link:

For more help, see <a href="http://www.google.com">here</a>.

But when we preview the form in the browser, we see:

For more help, see &lt;a href="http://google.com"&gt;here&lt;/a&gt;.

Is there a setting to allow Weblink to render HTML code within the text item?

0 0

Answer

SELECTED ANSWER
replied on August 2, 2021

Rick,

 See the following post on how you can accomplish this as the 10.x versions behave differently on how content is rendered. https://answers.laserfiche.com/questions/175894/Adding-custom-elements-to-WebLink-welcome-page

 

Wesley Funderberg

1 0
replied on August 2, 2021 Show version history

Thanks. I will never understand why any company thinks it's okay to remove/degrade features and functionality and call it an upgrade. I appreciate your help but these kinds of workarounds to restore previously available functionality should never be necessary.

0 0
replied on August 2, 2021

Rick,

Rendering un-sanitized HTML is considered a security hole, so this functionality was removed on purpose.

Laserfiche metadata fields are plain-text, so they are never expected to render as anything else. This functionality in WebLink was a side effect of it being a web page, but it was never a feature.

1 0
replied on August 2, 2021 Show version history

I understand that, but there are ways to implement HTML rendering in a system like this while closing security issues it might cause. From my perspective, this is still functionality that was removed in an upgrade. It should have been safely re-implemented as part of the upgrade, IMO, not just removed.

0 0

Replies

replied on July 30, 2021

Unfortunately there's no setting to do this. One of the updates in versions 10.2 removed rendering of user-inputted html.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.