vweb: fix compiling templates containing '

pull/5606/head
Delyan Angelov 2020-07-01 17:44:17 +03:00
parent 2f614ad79f
commit d43722fa85
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ _ = footer
mut in_span := false
//for _line in lines {
for i := 0; i < lines.len; i ++ {
line := lines[i].trim_space()
line := lines[i].trim_space().replace("\'", '"')
if line == '<style>' {
state = .css
} else if line == '</style>' {