http: make escape public on Windows
parent
8a7ddd102e
commit
27d09ed514
|
@ -189,7 +189,7 @@ pub fn (req &Request) do() Response {
|
||||||
return resp
|
return resp
|
||||||
}
|
}
|
||||||
|
|
||||||
fn escape(s string) string {
|
pub fn escape(s string) string {
|
||||||
# DWORD size=1;
|
# DWORD size=1;
|
||||||
# char *escaped = NULL;
|
# char *escaped = NULL;
|
||||||
# char *empty_string = NULL;
|
# char *empty_string = NULL;
|
||||||
|
|
|
@ -25,7 +25,7 @@ pub fn compile_template(path string) string {
|
||||||
panic('html failed')
|
panic('html failed')
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
header = h//.replace('\'', '"')
|
header = h.replace('\'', '"')
|
||||||
}
|
}
|
||||||
lines := html.split_into_lines()
|
lines := html.split_into_lines()
|
||||||
mut s := strings.new_builder(1000)
|
mut s := strings.new_builder(1000)
|
||||||
|
|
Loading…
Reference in New Issue