Shamrez Iqbal
Sep 5, 2008
(0 votes)

p-tags showing up

Recently one of our customers had a problem with p-tags appearing on a page.

I've bumped into similar issues and discussed the problem with Steve Celius on #epicode, and concluded that if all buttons in the editor of a field are turned off,

<episerver:property />

will then render the tags with html entities meaning that instead of the tags being processed, they'll actually just be shown on the page as-is.

I logged into the site and all the buttons for the property were turned of so it should generate any tags and i tried and tested things and no tags were generated.

After some further discussion with other people in #epicode, among them erik- and asthiss, i realized that the problem was caused by the fact that some webeditors had enabled All functions available in the Editor under Permissions for Functions

What happened then was that the property would show as a html-property for the some editors - inserting html tags, but when other editors accessed the property, it would show as plain text with tags.

The solution to the problem was to use <%= CurrentPage["PropertyName] %> in the page to force the property to process and render the html.

Sep 05, 2008


Please login to comment.
Latest blogs
Preview multiple Visitor Groups directly while browsing your Optimizely site

Visitor groups are great - it's an easy way to add personalization towards market segments to your site. But it does come with it's own set of...

Allan Thraen | Sep 26, 2022 | Syndicated blog

The Report Center is finally back in Optimizely CMS 12

With Episerver.CMS.UI 12.12.0 the Report Center is finally re-introduced in the core product.

Tomas Hensrud Gulla | Sep 26, 2022 | Syndicated blog

Dynamic Route in ASP.NET Core When MapDynamicControllerRoute Does Not Work

Background Creating one of the add-on for Optimizely I had to deal with challenge to register dynamically route for the API controller. Dynamic rou...

valdis | Sep 25, 2022 | Syndicated blog

404 Error on Static Assets Within an Optimizely plugin

Background With the move to CMS 12 and .NET 5/6, developers are now able to build Plugins and Extensions using Razor Class Libraries (RCL).  These...

Mark Stott | Sep 23, 2022