MCPcopy
hub / github.com/gchq/CyberChef / formatDirectory

Method formatDirectory

src/core/Utils.mjs:1053–1062  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

1051 */
1052 static async displayFilesAsHTML(files) {
1053 const formatDirectory = function(file) {
1054 const html = `<div class='card' style='white-space: normal;'>
1055 <div class='card-header'>
1056 <h6 class="mb-0">
1057 ${Utils.escapeHtml(file.name)}
1058 </h6>
1059 </div>
1060 </div>`;
1061 return html;
1062 };
1063
1064 const formatContent = function (buff, type) {
1065 if (type.startsWith("image")) {

Callers

nothing calls this directly

Calls 1

escapeHtmlMethod · 0.80

Tested by

no test coverage detected