This commit is contained in:
15
node_modules/stringify-entities/lib/escape.js
generated
vendored
Normal file
15
node_modules/stringify-entities/lib/escape.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict'
|
||||
|
||||
var core = require('./core')
|
||||
var smart = require('./util/format-smart')
|
||||
|
||||
module.exports = escape
|
||||
|
||||
// Shortcut to escape special characters in HTML.
|
||||
function escape(value) {
|
||||
return core(value, {
|
||||
escapeOnly: true,
|
||||
useNamedReferences: true,
|
||||
format: smart
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user