Skip to content

Commit

Permalink
Revert "Change to html raw"
Browse files Browse the repository at this point in the history
This reverts commit c602cbc.
  • Loading branch information
cwetanow committed Jun 2, 2017
1 parent f4ab4b7 commit a50b260
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Logs.Web/Views/Comment/_CommentContentPartial.cshtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@model Logs.Web.Models.Logs.CommentViewModel

@Html.Raw("<pre>" + Model.Content + "</pre>")
@Html.Raw("<pre>" + Html.Encode(Model.Content) + "</pre>")
2 changes: 1 addition & 1 deletion src/Logs.Web/Views/Entries/_EntryContentPartial.cshtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@model Logs.Web.Models.Logs.LogEntryViewModel

@Html.Raw("<pre>" + Model.Content + "</pre>")
@Html.Raw("<pre>" + Html.Encode(Model.Content) + "</pre>")
2 changes: 1 addition & 1 deletion src/Logs.Web/Views/Logs/_LogDescription.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@

<hr>
<p class="lead">
@Html.Raw("<pre>" + Model.Description + "</pre>")
@Html.Raw("<pre>" + Html.Encode(Model.Description) + "</pre>")
</p>
4 changes: 2 additions & 2 deletions src/Logs.Web/Views/Shared/_CommentPartial.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<small>@string.Format(Logs.Common.Constants.ShortDateFormat, Model.Date)</small>
</h4>
<span id="@($"comment{Model.CommentId}")">
@Html.Raw("<pre>" + Model.Content + "</pre>")
@Html.Raw("<pre>" + Html.Encode(Model.Content) + "</pre>")
</span>
@if (Model.CanEdit)
{
Expand All @@ -26,7 +26,7 @@
{
@Html.AntiForgeryToken()

@Html.TextAreaFor(m => m.Content, new { cols = "40", rows = "20" })
@Html.TextAreaFor(m => m.Content, new { cols = "40", rows = "20" })
<br />
@Html.HiddenFor(m => m.CommentId)
<input type="submit" value="Edit" class="btn btn-primary" />
Expand Down
2 changes: 1 addition & 1 deletion src/Logs.Web/Views/Shared/_EntryPartial.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</span>
</h3>

<span id="@($"entry{Model.EntryId}")" class="lead"> @Html.Raw("<pre>" + Model.Content + "</pre>")</span>
<span id="@($"entry{Model.EntryId}")" class="lead"> @Html.Raw("<pre>" + Html.Encode(Model.Content) + "</pre>")</span>
@if (Model.CanEdit)
{
using (Ajax.BeginForm("EditEntry", "Entries", null,
Expand Down

0 comments on commit a50b260

Please sign in to comment.