Umbraco Razor Add Line Breaks to Textbox multiple

@if (@Model.address != "")

var output = (umbraco.library.ReplaceLineBreaks(@Model.address));


  1. Brilliantly simple! Thanks mate.

  2. Thanks for putting this out there. This saved me at least a half hour of figuring why it was being stripped in the first place.


Post a Comment

Popular posts from this blog

Umbraco 7 - C# Razor - Passing a parameter variable from a Template to a Partial View.

Umbraco 7 Hide a page from Navigation or Sub Navigation with umbracoNaviHide using Razor in a template or partial view

Umbraco Razor Sort Nodes Ascending or Descending