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, I am trying to display the text in one of the text box property called H1.
I want the learn more, earn more to appear like this:
Learn More,
Earn More
So that the earn more is on a new line for the same property instead of adding a new one.
I tried adding in a break tag but is also taken as a text. Is there code in umbraco that we could wrap around the so that its not taken as text
You can do this with @Html.Raw in your view (which is an MVC thing, not an Umbraco thing :)), e.g. assuming you've put the br tag into the property value itself in the back office:
@Html.Raw(Model.H1)
Or if you're not using strongly typed models:
@Html.Raw(Model.Value<string>("H1"))
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Textbox property
Hi, I am trying to display the text in one of the text box property called H1.
I want the learn more, earn more to appear like this:
Learn More,
Earn More
So that the earn more is on a new line for the same property instead of adding a new one.
I tried adding in a break tag
but
is also taken as a text. Is there code in umbraco that we could wrap around the
so that its not taken as text
You can do this with @Html.Raw in your view (which is an MVC thing, not an Umbraco thing :)), e.g. assuming you've put the br tag into the property value itself in the back office:
Or if you're not using strongly typed models:
is working on a reply...