diff --git a/vlib/http/http_win.v b/vlib/http/http_win.v index a1885702de..5199252e5d 100644 --- a/vlib/http/http_win.v +++ b/vlib/http/http_win.v @@ -189,7 +189,7 @@ pub fn (req &Request) do() Response { return resp } -fn escape(s string) string { +pub fn escape(s string) string { # DWORD size=1; # char *escaped = NULL; # char *empty_string = NULL; diff --git a/vlib/vweb/tmpl/tmpl.v b/vlib/vweb/tmpl/tmpl.v index 159c4d8a46..14a2596993 100644 --- a/vlib/vweb/tmpl/tmpl.v +++ b/vlib/vweb/tmpl/tmpl.v @@ -25,7 +25,7 @@ pub fn compile_template(path string) string { panic('html failed') return '' } - header = h//.replace('\'', '"') + header = h.replace('\'', '"') } lines := html.split_into_lines() mut s := strings.new_builder(1000)