Skip to content

ng-bind-html stripping id attributes #6

@DaveLindberg

Description

@DaveLindberg

HTML: <div ng-bind-html="post.content | unsafe"></div>
Template: single-detail.html
Wordpress content: ...<div class="well 8em" id="brands">...
Renders as: ...<div class="well 8em">...

See the results at http://dev.davelindberg.com.

Looks similar to ID attribute from link gets filtered out?

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