Fix handling of embedded HTML in bash command output. (#3968)

This commit is contained in:
Martin Taillefer 2019-04-09 08:25:47 -07:00 committed by istio-bot
parent ef18deae4c
commit fe0e67bdde
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -274,7 +274,7 @@ function handleCodeBlocks() {
}
if (output !== "") {
output = output.replace("<", "&lt;").replace(">", "&gt;");
output = output.replace(/</g, "&lt;").replace(/>/g, "&gt;");
// apply formatting to the output?
if (code.dataset.outputis) {