Browse Source

Allow for new lines in hot spot text (fixes #307).

pull/318/head
Matthew Petroff 8 years ago
parent
commit
2158d8502d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/js/pannellum.js

+ 2
- 1
src/js/pannellum.js View File

@@ -2132,7 +2132,8 @@ function escapeHTML(s) {
.replace("'", ''') .replace("'", ''')
.replace('<', '&lt;') .replace('<', '&lt;')
.replace('>', '&gt;') .replace('>', '&gt;')
.replace('/', '&#x2f;');
.replace('/', '&#x2f;')
.replace('\n', '<br>'); // Allow line breaks
} }


/** /**


Loading…
Cancel
Save