Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

property String (<= 255) question



When I added a String(<=255) property, in there out put html code, there is a <span> </span> added with the value, how to or is it possible to removed the span tag?


Feb 13, 2009 13:19
<%= CurrentPage.Property["PropertyName"].Value %>
Feb 13, 2009 13:38

Hi Homer.

If you want to use the <EPiServer:Property> webcontrol, take a look at these blog posts: 

Br, Tore

Feb 13, 2009 13:45
Thx guys :)
Feb 13, 2009 14:50

Be carful with the code below that can break your page: 

<%= CurrentPage.Property["PropertyName"] %>

You should always take care to add html encoding:

<%= HttpUtility.HtmlEncode(CurrentPage.Property["PropertyName"] as string) %>

Read more:


Feb 15, 2009 15:00

Fredrik, u r so cool :) Still teaching CMS5 beginners course these days?

Thx for ur comments!!!

Feb 18, 2009 14:42
Yes, still teaching... and still listening to Schlager ;-)
Feb 18, 2009 19:26
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.