mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
Update meilisearch-http/public/interface.html
bypassing <em> tag after encoding the "<>" Co-Authored-By: Clément Renault <renault.cle@gmail.com>
This commit is contained in:
parent
6151bc262f
commit
ae17aa4955
@ -151,6 +151,8 @@
|
|||||||
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,">");
|
||||||
|
str = str.replace(/<em>/g,"<em>");
|
||||||
|
str = str.replace(/<\/em>/g,"<\/em>");
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user