1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

http: make escape public on Windows

This commit is contained in:
Alexander Medvednikov 2019-07-31 04:00:40 +02:00
parent 8a7ddd102e
commit 27d09ed514
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)