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