Skip to content

Optionally allow for HTML in validation errors #15

@jasonmit

Description

@jasonmit

Currently we always go through intl.formatMessage where in the future we likely want to conditionally call intl.formatHtmlMessage based on some flag.

import { validator, buildValidations } from 'ember-cp-validations';

const Validations = buildValidations({
  username: validator('presence', {
    presence: true,
    is_html: true,
    descriptionKey: 'key.for.username'
  })
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions