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:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user