Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngSanitize throws TypeError when trying to use ng-bind-html w/ Number. #8416

Closed
@chiefy

Description

@chiefy

I'm not really sure if this is an issue, as I don't use ng-bind-html that much, but...

Just discovered this issue in our app running ng 1.1.5, but it seems to occur in the latest version of ngSanitize. When scoped var is set to a Number, it bombs out when ngSanitize tries to call indexOf on the Number, which is undefined.

ex. <div ng-bind-html="some_number"></div> <!-- throws error -->

jsbin example case

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