Browse Source

Ajout autorisation balises Hn dans textes des questionnaires

master
Fabrice PENHOËT 8 months ago
parent
commit
28a6a87650
  1. 2
      models/Questionnaire.js

2
models/Questionnaire.js

@ -54,7 +54,7 @@ module.exports = (sequelize, DataTypes) =>
introduction:
{
type: DataTypes.TEXT, allowNull: false,
set(value) { this.setDataValue("introduction", tool.trimIfNotNull(striptags(value,"<p><b><i><em><strong><ul><li><div><a><br>"))); },
set(value) { this.setDataValue("introduction", tool.trimIfNotNull(striptags(value,"<h3><h4><h5><p><b><i><em><strong><ul><li><div><a><br>"))); },
validate:
{
notNull: { msg: txt.needIntroduction }

Loading…
Cancel
Save