| Index: native_client_sdk/src/examples/hello_nacl_mounts/example.js
|
| diff --git a/native_client_sdk/src/examples/hello_nacl_mounts/example.js b/native_client_sdk/src/examples/hello_nacl_mounts/example.js
|
| index c2376eaebb4f78edf1165770a942a1199f500186..c355b4d08a426a9351e8ce4ed3d7868ddad9d492 100644
|
| --- a/native_client_sdk/src/examples/hello_nacl_mounts/example.js
|
| +++ b/native_client_sdk/src/examples/hello_nacl_mounts/example.js
|
| @@ -140,6 +140,14 @@ function startsWith(s, prefix) {
|
|
|
| function logMessage(msg) {
|
| var logEl = document.getElementById('log');
|
| +
|
| + // Perform some basic escaping.
|
| + msg = msg.replace(/&/g, '&')
|
| + .replace(/</g, '<')
|
| + .replace(/>/g, '>')
|
| + .replace(/"/g, '"')
|
| + .replace(/'/g, ''');
|
| +
|
| logEl.innerHTML += msg + '<br>';
|
| }
|
|
|
|
|