Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
hi everyone
I filled a field which call Slogan, in a given that contains html codeby exmple : Strong </ br> Safe </ br> Stable. by a data that contains html code
for exmple : Strong </ br> Safe </ br> Stable.
then I want the code will be converted , not displayed as a data,
i need your help
thank you
Hi khansaa111,
Then you need to use the method called @Html.Raw() and the pass your field in to that. Then your break tags and strong tags would be rendered on the fronted of you website and not be encoded.
If you have access to Umbraco TV, there is a video about @Html.Raw http://umbraco.tv/videos/implementor/working-with-umbraco-data/razor-syntax/htmlraw/ and there is also some written documentation about this. http://umbraco.tv/videos/implementor/working-with-umbraco-data/razor-syntax/htmlraw/documentation
Hope this helps,
/Dennis
hi dennis Aaen ,
thank you soooooo mush , its work now with this method :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
a field that contains html code
hi everyone
I filled a field which call Slogan, in a given that contains html codeby exmple : Strong </ br> Safe </ br> Stable. by a data that contains html code
for exmple : Strong </ br> Safe </ br> Stable.
then I want the code will be converted , not displayed as a data,
i need your help
thank you
Hi khansaa111,
Then you need to use the method called @Html.Raw() and the pass your field in to that. Then your break tags and strong tags would be rendered on the fronted of you website and not be encoded.
If you have access to Umbraco TV, there is a video about @Html.Raw http://umbraco.tv/videos/implementor/working-with-umbraco-data/razor-syntax/htmlraw/ and there is also some written documentation about this. http://umbraco.tv/videos/implementor/working-with-umbraco-data/razor-syntax/htmlraw/documentation
Hope this helps,
/Dennis
hi dennis Aaen ,
thank you soooooo mush , its work now with this method :)
is working on a reply...