UNPKG

@lastboy/vue2

Version:

Fork of Vue 2.7.16 with patched CVE-2024-9506 (regex ReDoS vulnerability)

9 lines (7 loc) 247 B
import { addProp } from 'compiler/helpers' import { ASTDirective, ASTElement } from 'types/compiler' export default function html(el: ASTElement, dir: ASTDirective) { if (dir.value) { addProp(el, 'innerHTML', `_s(${dir.value})`, dir) } }