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

feat($interpolate): enable escaping interpolated expressions #7511

Closed
wants to merge 2 commits into from

Commits on May 19, 2014

  1. feat($interpolate): enable escaping interpolated expressions

    Previously, Angular would offer no proper mechanism to reveal attempted script injection attacks
    when users would add expressions which may be compiled by angular.
    
    This CL enables web servers to escape escaped expressions by replacing interpolation start and end
    markers with escpaed values (which by default are `{{{{` and `}}}}`, respectively).
    
    This also allows the application to render the content of the expression without rendering just the
    result of the expression.
    
    Closes angular#5601
    caitp committed May 19, 2014
    Configuration menu
    Copy the full SHA
    2965129 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2014

  1. fix($interpolate): don't unescape incomplete interpolation escape mar…

    …kers
    
    This is a hack to prevent a potential issue brought up by @shahata. Its merit is up for discussion.
    caitp committed May 20, 2014
    Configuration menu
    Copy the full SHA
    3fd7836 View commit details
    Browse the repository at this point in the history