0.0.1 • Published 5 years ago

hypersafe v0.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

This is early POC of Hyperapp#2 vNodes escape

Escape

import { app } from 'hyperapp'
import { escape } from 'hypersafe'
import view from 'your/view/path'

app({
  // app initializetion
  view: escape(view, { /* escape options */ })
})

Options

Hypersafe allows you to disable any escaping rule, please take a look at 'src/tests.js' for rule names, example:

import { app } from 'hyperapp'
import { escape } from 'hypersafe'
import view from 'your/view/path'

app({
  // app initializetion
  view: escape(view, {
    // allows script tag
    disableScriptTag: false
  })
})