Inject thumbnails in DASH (#15)

* [Test] inject thumbnails in DASH

* Address wrong storyboard hight

* Better dash

* Feature flag it for now

* Add a small safety check and some comments

* Fix thumbnails

* Fix content type

* Fix dash router

* Remove comment

* Move function, add null check
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2022-11-29 21:24:37 -05:00
1 parent 301cfe1b82
commit 5b10696400
6 files changed
+195 -4

No files matched your search

+14
View File
@@ -125,4 +125,18 @@ namespace WebUtils
return validstr(hcm["n" + Stri(code).trim()])
end function
function EscapeUrlForXml(url as string) as string
urlEscapeChars = {}
urlEscapeChars["&"] = "&"
urlEscapeChars["'"] = "'"
urlEscapeChars[`"`] = """
urlEscapeChars["<"] = "&lt;"
urlEscapeChars[">"] = "&gt;"
for each escapeChar in urlEscapeChars
url = url.Replace(escapeChar, urlEscapeChars[escapeChar])
end for
return url
end function
end namespace