mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Added the missing function call
This commit is contained in:
parent
b62f9fabf2
commit
6151bc262f
@ -147,7 +147,7 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function sanitizeHTMLEntities (str) {
|
function sanitizeHTMLEntities(str) {
|
||||||
if (str && typeof str === 'string') {
|
if (str && typeof str === 'string') {
|
||||||
str = str.replace(/</g,"<");
|
str = str.replace(/</g,"<");
|
||||||
str = str.replace(/>/g,">");
|
str = str.replace(/>/g,">");
|
||||||
@ -177,7 +177,7 @@
|
|||||||
lastRequest.open("GET", theUrl, true);
|
lastRequest.open("GET", theUrl, true);
|
||||||
lastRequest.onload = function (e) {
|
lastRequest.onload = function (e) {
|
||||||
if (lastRequest.readyState === 4 && lastRequest.status === 200) {
|
if (lastRequest.readyState === 4 && lastRequest.status === 200) {
|
||||||
let sanitizedResponseText = lastRequest.responseText;
|
let sanitizedResponseText = sanitizeHTMLEntities(lastRequest.responseText);
|
||||||
let httpResults = JSON.parse(sanitizedResponseText);
|
let httpResults = JSON.parse(sanitizedResponseText);
|
||||||
results.innerHTML = '';
|
results.innerHTML = '';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user