Skip to content

sergey-shpak/hypersafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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
  })
})

About

Escapes vdom xss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published