Project

General

Profile

Actions

Bug #561

open
NB NB

[FE] - web - ico detail - handle if return data is html format

Bug #561: [FE] - web - ico detail - handle if return data is html format

Added by nanon buaphet about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
04/27/2026
Due date:
% Done:

0%

Estimated time:

Description

const rawData = response.data
const isHtml = ["<"].include(rawData)

/////////// decode part/////////

let parsed = rawData
if isHtml;
->parsed = DOM.Parser(rawData)

//////////// render part ////////
if isHtml
->return <div dangerouslySetInnerHTML={{ __html: parsed! }} />

return parsed

Actions

Also available in: PDF Atom