Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

(popover) Why this directive don't support ng-bind-html-unsafe #951

Closed

Description

@smallg

if the popover title or content is long text, we must add space or html code(<br/>) to implement word wrap.
But IE8 can support space not friendly.
So we must use html code to implement it.

I think we can add ng-bind-html-unsafe instead of ng-bind, like this:

old:

    "      <h3 class=\"popover-title\" ng-bind=\"title\" ng-show=\"title\"></h3>\n" +
    "      <div class=\"popover-content\" ng-bind=\"content\"></div>\n" +

new:

    "      <h3 class=\"popover-title\" ng-bind-html-unsafe=\"title\" ng-show=\"title\"></h3>\n" +
    "      <div class=\"popover-content\" ng-bind-html-unsafe=\"content\"></div>\n" +

Activity

  1. pkozlowski-opensource commented on Oct 4, 2013

    @pkozlowski-opensource
    Member

    @smallg see my comment in #641 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions