Skip to content

Commit 20b8d9d

Browse files
authored
add unscape html for error message.
1 parent 56c075f commit 20b8d9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/formGenerator.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ div.vue-form-generator(v-if='schema != null')
3232
button(v-for='btn in field.buttons', @click='buttonClickHandler(btn, field, $event)', :class='btn.classes') {{ btn.label }}
3333
.hint(v-if='field.hint') {{ field.hint }}
3434
.errors.help-block(v-if='fieldErrors(field).length > 0')
35-
span(v-for='(error, index) in fieldErrors(field)', track-by='index') {{ error }}
35+
span(v-for='(error, index) in fieldErrors(field)', v-if='!field.unscapeErrors', v-html="error", track-by='index')
36+
span(v-for='(error, index) in fieldErrors(field)', v-if='field.unscapeErrors', track-by='index') {{ error }}
3637
</template>
3738

3839
<script>

0 commit comments

Comments
 (0)