Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Change support HTML text #54

Description

@dungvu-equix

I need binding translate text with html code format like : "Required
" . Your lib still use function errorElm.text(errorMsg), this can not set html code, could you change it to errorElm.html(errorMsg).

// invalid & isDirty, display the error message... if not exist then create it, else udpate the text
if (!!attrs && !attrs.isValid && (isSubmitted || self.ctrl.$dirty || self.ctrl.$touched)) {
(errorElm.length > 0) ? errorElm.text(errorMsg) : elm.after('' + errorMsg + '');
} else {
errorElm.text(''); // element is pristine or no validation applied, error message has to be blank
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions