Merge pull request #1 from vpolouchkine/patch-1
Add the HtmlHelper.Raw method which renders unencoded HTML.
This commit is contained in:
Коммит
af7b7b0c9b
|
@ -13,6 +13,10 @@ namespace PortableRazor.Web.Mvc
|
||||||
_writer = writer;
|
_writer = writer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IHtmlString Raw(string value) {
|
||||||
|
return new HtmlString (value);
|
||||||
|
}
|
||||||
|
|
||||||
private string GenerateHtmlAttributes(object htmlAttributes) {
|
private string GenerateHtmlAttributes(object htmlAttributes) {
|
||||||
var attrs = new StringBuilder ();
|
var attrs = new StringBuilder ();
|
||||||
if (htmlAttributes != null) {
|
if (htmlAttributes != null) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче