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:
1 parent
301cfe1b82
commit
5b10696400
6 files changed
+195
-4
No files matched your search
@@ -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["<"] = "<"
|
||||
urlEscapeChars[">"] = ">"
|
||||
|
||||
for each escapeChar in urlEscapeChars
|
||||
url = url.Replace(escapeChar, urlEscapeChars[escapeChar])
|
||||
end for
|
||||
return url
|
||||
end function
|
||||
|
||||
end namespace
|
||||
Reference in new issue
Block a user