Files
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

10 lines
313 B
JavaScript

module.exports = toDecimalReference
var fromCharCode = require('../constant/from-char-code')
// Transform `code` into a decimal character reference.
function toDecimalReference(code, next, omit) {
var value = '&#' + String(code)
return omit && next && !/\d/.test(fromCharCode(next)) ? value : value + ';'
}