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

vweb: escape html; table: rename parent_typ to parent_type

This commit is contained in:
Alexander Medvednikov
2020-06-24 22:12:33 +02:00
parent 67d9d94fb3
commit 83b300435a
10 changed files with 71 additions and 35 deletions

View File

@@ -152,7 +152,8 @@ _ = footer
}
} else {
// HTML, may include `@var`
s.writeln(line.replace('@', '\x24').replace("'", '"'))
// escaped by cgen, unless it's a `vweb.RawHtml` string
s.writeln(line.replace('@', '$').replace("'", '"'))
}
}
s.writeln(str_end)
@@ -161,3 +162,4 @@ _ = footer
s.writeln('// === end of vweb html template ===')
return s.str()
}