mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
refactor: remove HTML validation functions and simplify HtmlPreview component logic (#6730)
* refactor: remove HTML validation functions and simplify HtmlPreview component logic * chore: fix playwright - removed body value check since response is rendered in webview --------- Co-authored-by: Bijin A B <bijin@usebruno.com>
This commit is contained in:
@@ -506,12 +506,6 @@ export function prettifyJavaScriptString(jsString) {
|
||||
}
|
||||
};
|
||||
|
||||
// Check if string contains valid HTML structure
|
||||
export const isValidHtml = (str) => {
|
||||
if (typeof str !== 'string' || !str.trim()) return false;
|
||||
return /<\s*html[\s>]/i.test(str);
|
||||
};
|
||||
|
||||
export function formatHexView(buffer) {
|
||||
const width = 16;
|
||||
let output = '';
|
||||
|
||||
Reference in New Issue
Block a user