I thought that you were using the multiple textbox property type in Umbraco, then if you write some code into this like a <script> tag and want to print out the script tag, then you can use the Html.Raw function. If you have access to Umbraco TV, there is an episode about the @Html.Raw() http://umbraco.tv/videos/implementor/working-with-umbraco-data/razor-syntax/htmlraw/
Partial view macro (Textarea type) line break
Hi
Is it possible to make linebreaks in the Partial view macro textarea type?
I does not work when hitting enter og inserting a <br>
// René
Hi René
When you are using the multiple textbox, and add HTML into it and want to outputted in your Partial view macro then you need to use the @Html.Raw()
So try this.
If you are using dynamic Razor.
And if you are using strongly typed Razor
Hope this helps,
/Dennis
Hi Dennis
I have one of those days where anything is difficult....Even the easy stuff. :-)
Please see this code which gives me a output without line-breaks:
Where and how will you insert your code?
// René
Hi René
I thought that you were using the multiple textbox property type in Umbraco, then if you write some code into this like a <script> tag and want to print out the script tag, then you can use the Html.Raw function. If you have access to Umbraco TV, there is an episode about the @Html.Raw() http://umbraco.tv/videos/implementor/working-with-umbraco-data/razor-syntax/htmlraw/
Hope this make sense.
/Dennis
Hi Dennis
After watching UmbracoTV I made this solution.
Thanks!
// René
is working on a reply...