Ajout autorisation balises Hn dans textes des questionnaires

This commit is contained in:
Fabrice PENHOËT 2020-11-06 10:24:58 +01:00
parent a6e01a27d2
commit 28a6a87650
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ module.exports = (sequelize, DataTypes) =>
introduction: introduction:
{ {
type: DataTypes.TEXT, allowNull: false, 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: validate:
{ {
notNull: { msg: txt.needIntroduction } notNull: { msg: txt.needIntroduction }