Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1const ATTR_REGEX = /[&"<]/g;2const CONTENT_REGEX = /[&<]/g;3 4/**5 * @template V6 * @param {V} value7 * @param {boolean} [is_attr]8 */9export function escape_html(value, is_attr) {10 const str = String(value ?? '');11 12 const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;13 pattern.lastIndex = 0;14 15 let escaped = '';16 let last = 0;17 18 while (pattern.test(str)) {19 const i = pattern.lastIndex - 1;20 const ch = str[i];21 escaped += str.substring(last, i) + (ch === '&' ? '&' : ch === '"' ? '"' : '<');22 last = i + 1;23 }24 25 return escaped + str.substring(last);26}27 