From 2158d8502df1c73d345b95c4f7d2bc42e7e09ceb Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Fri, 2 Dec 2016 15:51:52 -0500 Subject: [PATCH] Allow for new lines in hot spot text (fixes #307). --- src/js/pannellum.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 59d20f9..d31bafc 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -2132,7 +2132,8 @@ function escapeHTML(s) { .replace("'", ''') .replace('<', '<') .replace('>', '>') - .replace('/', '/'); + .replace('/', '/') + .replace('\n', '
'); // Allow line breaks } /**