@layout and @Raw not compatible? #115
Unanswered
praveen-ramesh
asked this question in
Q&A
Replies: 1 comment
-
Handled this by making HtmlSafeTemplate.RenderBody return "raw" content like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are encoding the generated value using the @Raw technique proposed.
And we are also using the @layout feature.
But, these 2 features seem to be incompatible. A template like this:
Is generating encoded output like this:
We don't want the html tags encoded in this scenario, obviously. Our actual template is much larger, of course, with a lot of bindings to @model, whose values we do want encoded.
Can you provide suggestion on how to work with both these features?
Beta Was this translation helpful? Give feedback.
All reactions