mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 15:46:01 +00:00
SYNC: Merge pull request #10 from dbgate/feat-chat-compl-api
This commit is contained in:
6
packages/web/src/utility/decodeHtmlEntities.ts
Normal file
6
packages/web/src/utility/decodeHtmlEntities.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function decodeHtmlEntities(text: string): string {
|
||||
if (!text) return text;
|
||||
const textarea = document.createElement('textarea');
|
||||
textarea.innerHTML = text;
|
||||
return textarea.value;
|
||||
}
|
||||
Reference in New Issue
Block a user