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.

regression in 1.2.3: ng-bind-html breaks in Safari 7 on OSX 10.9 #5192

Closed
@urish

Description

@urish

For some reason, ng-bind-html renders the given text twice on Safari 7. This seems to be a regression in ngSanitize 1.2.3.

The following Plunker reproduces the issue:

http://plnkr.co/edit/4tXYKqp3p5dmiMrmIUNI?

It only reproduces on Safari 7.0 (It didn't reproduce on Safari 6.0.5/Chrome latest/Firefox latest/IE9/IE10). Also, if you change the Plunker to use ngSanitize version 1.2.2, the issue is gone and ng-bind-html functions as expected.

Here is the expected output v.s. the actual output from the above Plunker code:

Expected Output

<div ng-bind-html="name" class="ng-binding"><strong>John Due ☺</strong></div>

Actual Output with Safari 7 and ngSanitize 1.2.3

<div ng-bind-html="name" class="ng-binding"><strong>John Due &amp;#9786;John Due ☺</strong></div>

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions